A Generalization of the "Raboter" Operation
Yonah Biers-Ariel

TL;DR
This paper extends Sloane's binary 'Raboter' operation to various bases, uncovering new sequences and broadening the understanding of this digit manipulation technique.
Contribution
It introduces a generalized form of the 'Raboter' operation applicable to multiple bases, expanding the scope of previous binary-focused work.
Findings
Discovered new sequences resulting from the generalized operation.
Provided formulas and properties for the new sequences.
Demonstrated the operation's applicability beyond binary representations.
Abstract
We generalize an operation described by Sloane on the binary representation of an integer to other bases, thus finding several new sequences.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputability, Logic, AI Algorithms
A Generalization of the “Raboter” operation.
By Yonah BIERS-ARIEL
1 Introduction
In a recent talk at Rutgers’ Experimental Math Seminar, Neil Sloane described the “raboter” operation for the base two representation of a number [1]. From this representation, one reduces by one the length of each run of consecutive 1s and 0s. Denote this operation by ; so, for example, because 12 is represented in binary as 1100, and reducing the length of each run by one yields 10.
Sloane also defined and conjectured that , a fact which was quickly proven by Doron Zeilberger [3] and Chai Wah Wu [2].
In Section 2, we generalize this theorem to bases other than 2. Let be the the number whose base- representation is generated by taking the base- representation of and shortening each run of consecutive identical elements by one. Further, let . We will prove that
[TABLE]
In Section 3, we raise to various powers. Define ; we develop an algorithm in Maple to rigorously compute as an expression in terms of for any fixed . In addition, for any fixed , we can conjecture an expression for in terms of and .
2 More General Bases
Following the example of Zeilberger, we find a recurrence satisfied by and then find a closed form expression satisfying the same recurrence.
Theorem 2.1**.**
* for .*
Proof.
There are numbers which contribute to are exactly those numbers whose base- representations use digits, so each can be written as where and . If , then is a run of just one element, so the raboter operation eliminates it and . Numbers with representations are exactly those which were counted in the calculation of , and each is counted times here, once for each .
If , then the base- representation of is the representation of with appended to the end, and so . Thus,
[TABLE]
∎
Together with initial condition , this determines the sequence . Finding an explicit formula for is now just a matter of finding a formula which obeys this same recurrence.
Corollary 2.2**.**
.
Proof.
With some help from Doron Zeilberger’s Maple package Cfinite, we conjecture that the formula for has the form , so we solve the system of equations
[TABLE]
for and find and . Let . Proving that is simply a matter of verifying that and for , which can easily be done using Maple or any other computer algebra system. ∎
3 Higher Moments
With a formula for found, we consider the following additional generalization:
[TABLE]
that is the sum of taken over all numbers whose base- representation has -digits. The trick in this case is to work inductively beginning with the (solved) case, and, along the way compute which we define to be the sum of taken over all numbers whose base- representation has -digits, the last of which is .
In order to compute , we use the following recurrence:
Theorem 3.1**.**
**
Proof.
The numbers with length- base- representations ending in are exactly those which can be written as with and . Therefore,
[TABLE]
∎
We find a similar recurrence for .
Theorem 3.2**.**
.
Proof.
Again, note that the numbers counted by are those which can be written as with and Therefore, the following equations hold:
[TABLE]
Change the name of to to maintain consistent notation, and we have derived the claimed equation. ∎
4 Maple Implementation
The Maple package raboter.txt available at http://sites.math.rutgers.edu/~yb165/raboter.txt contains functions to implement this recurrence. The most important are SumPowers(b,k,p) which finds an expression in terms of for (for fixed and ) and GuessGeneralForm(b,n,p) which conjectures an expression in terms of and for (for fixed ).
For example, this package proves that
[TABLE]
and conjectures that
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] N.J.A. Sloane, Coordination Sequences, Planing Numbers, and Other Recent Sequences , talk given in Rutgers University Experimental Mathematics Seminar, Nov. 15, 2018. Video part 1: https://vimeo.com/301216222 ; video part 2: https://vimeo.com/301219515 ; slides: http://sites.math.rutgers.edu/~my 237/expmath/EM Nov 2018.pdf .
- 2[2] N.J.A. Sloane, The On-Line Encyclopedia of Integer Sequences , Sequence A 318921 , http://oeis.org/A 318921 .
- 3[3] Doron Zeilberger, “Proof of a Conjecture of Neil Sloane Concerning Claude Lenormand’s “Raboter” Operation (OEIS sequence A 318921)” The Personal Journal of Shalosh B. Ekhad and Doron Zeilberger (2018). http://sites.math.rutgers.edu/~zeilberg/mamarim/mamarim PDF/rabot.pdf .
