A288537 Array A(b,n) by upward antidiagonals (b>1, n>0): the eventual period of the RATS sequence in base b starting from n; 0 is for infinity.
1, 3, 1, 2, 3, 1, 2, 2, 3, 1, 8, 2, 2, 3, 1, 4, 8, 2, 2, 3, 1, 3, 4, 8, 2, 2, 3, 1, 2, 3, 2, 8, 2, 2, 3, 1, 0, 2, 3, 4, 2, 2, 2, 3, 1, 28, 0, 2, 3, 4, 8, 2, 2, 3, 1, 90, 28, 8, 2, 6, 2, 8, 2, 2, 3, 1, 8, 90, 28, 0, 2, 3, 4, 8, 2, 2, 3, 1, 72, 8, 90, 28, 0, 2
Offset: 2
Examples
In base 3, the RATS mapping acts as 1 -> 2 -> 4 (11 in base 3) -> 8 (22 in base 3) -> 13 (112 in base 3) -> 4, which has already been seen 3 steps ago, so A(3,1)=3. The array begins: 1, 1, 1, 1, 1, 1, ... 3, 3, 3, 3, 3, 3, ... 2, 2, 2, 2, 2, 2, ... 2, 2, 2, 2, 2, 2, ... 8, 8, 8, 8, 2, 8, ... 4, 4, 2, 4, 4, 2, ... 3, 3, 3, 3, 6, 3, ... 2, 2, 2, 2, 2, 2, ... 0, 0, 8, 0, 0, 8, ... 28, 28, 28, 28, 2, 28, ... 90, 90, 90, 90, 90, 90 ...
Links
- Curtis Cooper, RATS.
- R. K. Guy, Conway's RATS and other reversals, Amer. Math. Monthly, 96 (1989), 425-428.
- S. Shattuck and C. Cooper, Divergent RATS sequences, Fibonacci Quart., 39 (2001), 101-106.
- J. Thiel, Conway’s RATS Sequences in Base 3, Journal of Integer Sequences, 15 (2012), Article 12.9.2.
- J. Thiel, On RATS sequences in general bases, Integers, 14 (2014), #A50.
- Eric Weisstein's World of Mathematics, RATS Sequence.
- Index entries for sequences related to RATS: Reverse, Add Then Sort
Formula
A(2^t,1)=t.
A(3,3^A134067(p)-1)=p+3.
Comments