OFFSET
1,1
COMMENTS
All the nonnegative integers will appear in this sequence, except the terms of A308306.
The "boomerang protocol" sends 1 to the left (as 1 is odd - the even digits move to the right), jumping over exactly 1 cell. To "bring back" 1 to its initial cell, the smallest integer is 102. Let's see how:
Our initial 1 starts for instance here (dots are cells):
....1....
and ends there (S is the starting cell):
..1.S....
We have this pattern now for the "bring back" integer (S is the new start, A is the Arrival cell we must reach - which was the starting cell of 1):
..S.A....
The smallest integer starting on S and ending on A is 102:
..1.A....
0...A....
.2..A....
We see that 1 jumps to the left over 1 cell, 0 to the right over 0 cell (thus moving to this cell), 2 jumps over 2 cells and lands precisely on the Arrival cell.
Note that many integers can "bring back" 1 in its initial cell, 120 is one of them, for instance, or 1410.
LINKS
Jean-Marc Falcoz, Table of n, a(n) for n = 1..12000
EXAMPLE
The sequence starts with 102,25,20,27,22,29,24,90,... We see that:
a(1) = 102 means that 102 will bring 1 back in its initial cell;
a(2) = 25 means that 25 will bring 2 back in its initial cell;
a(3) = 20 means that 20 will bring 3 back in its initial cell;
a(4) = 27 means that 27 will bring 4 back in its initial cell;
a(5) = 22 means that 22 will bring 5 back in its initial cell;
The general formula being that a(n) brings back (n) in its initial cell.
a(100) = -1 means that 100 is a "boomerang number": it "comes back" by itself without any external help. Those numbers are listed in A308306.
CROSSREFS
KEYWORD
sign,base
AUTHOR
Eric Angelini and Jean-Marc Falcoz, May 20 2019
STATUS
approved