cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A161593 Lengths of new periods in the RATS sequence (0 replacing infinity).

Original entry on oeis.org

0, 8, 2, 18, 2, 2, 2, 14, 2, 3, 2, 2, 2, 6
Offset: 1

Views

Author

J. H. Conway and Tanya Khovanova, Jun 14 2009

Keywords

Comments

The values A114611(j) for those starting values j of the RATS mapping x->A036839(x) which end in cycles that cannot be reached starting from any smaller j.
Every integer > 1 appears in this sequence. - Andrey Zabolotskiy, Jun 11 2017
For other terms see Branicky link. - Michael S. Branicky, Dec 30 2022

Examples

			a(1)=A114611(0). a(2)=A114611(j=3)=8 with a cycle of length 8 shown in A066710.
A114611(j=6)=8 does not contribute because the cycle is the same as reached from j=3.
a(3)=A114611(9)=2 with a new cycle of length 2 shown in A066711.
A114611(j=12)=8 does not contribute because the cycle is the same as reached from j=3.
A114611(j=15)=8 does not contribute because 15->66->123 is the cycle as reached from j=3.
A114611(j=18)=2 does not contribute because the cycle is the same as reached from j=9.
A114611(j=21)=8 does not contribute because 21->33->66 reaches the same cycle as started from j=3.
a(4)=A114611(j=29)=18.
		

Crossrefs

Extensions

Comment and examples added by R. J. Mathar, Jul 07 2009
a(9)-a(14) from Michael S. Branicky, Dec 30 2022

A161590 Initial value x of a RATS trajectory x->A036839(x) ending in a cycle unreachable by any smaller initial value.

Original entry on oeis.org

1, 3, 9, 29, 69, 2079, 3999, 6999, 10677, 20169, 10049598, 20008989, 100014888, 100074268
Offset: 1

Views

Author

J. H. Conway and Tanya Khovanova, Jun 14 2009, Jul 04 2009

Keywords

Comments

This is one way of book-keeping of new "destinies" (the smallest element of the cycle that the trajectory ends up in).
The value 1 is a placeholder for all non-cyclic trajectories.
Next terms are respectively <= 10000122228, 20000666679, 2000001113379, 2000001113559, 9999999999999, 100000044444447. See Branicky link for further upper bounds. - Michael S. Branicky, Dec 30 2022

Examples

			The RATS (Reverse Add Then Sort) algorithm applied to 69 produces a sequence 69, 156, 78, 156, 78, ...
Its cycle {156, 78} appears not if the algorithm is started with any number in the range 0 to 68, so 69 is added to the sequence.
		

Crossrefs

Extensions

10677, 20169 from Wouter Meeussen, Jul 04 2009
Definition rephrased by R. J. Mathar, Jul 08 2009
a(11)-a(14) from Michael S. Branicky, Dec 30 2022

A161592 Except for the first term the number in the sequence is the smallest number in a new cycle of a RATS sequence with a new destiny. The first term is the best analog of this for the "infinite cycle".

Original entry on oeis.org

12334444, 111, 117, 1223, 78, 111177, 11127, 11144445, 11667, 1111113
Offset: 1

Views

Author

J. H. Conway & Tanya Khovanova, Jun 14 2009

Keywords

Comments

"Destiny" means the smallest element of the cycle that the trajectory ends up in.
All seeds except those generating the cycles listed here produce an open non-cyclic family (thus without lowest element) but with a regular structure like 12334444, 55667777, 123334444, 556667777, 1233334444, 5566667777,..., and with an arbitrary start-up like 1, 2, 4, 8, 16, 77, 145, 668, 1345, 6677, 13444, 55778, 133345, 666677, 1333444, 5567777, 12333445, 66666677, 133333444, 556667777, 1233334444, 5566667777, 12333334444, 55666667777, 123333334444, ... Notice that here we fall into the regular regime starting with 1233334444 (four threes). The sequence gives 12-(two threes)-4444 as a representative with index 1. - Wouter Meeussen, Jul 26 2009

Crossrefs

Extensions

11667, 1111113 from Wouter Meeussen, Jul 04 2009

A275218 Numbers in 2-cycles of RATS sequences.

Original entry on oeis.org

78, 117, 156, 288, 11127, 11667, 23388, 27888, 111177, 228888, 111111777, 222888888, 1111122267, 3333337788, 111111117777, 222288888888, 111111111177777, 222228888888888, 111111111111777777, 222222888888888888
Offset: 1

Views

Author

Robert Israel, Jul 20 2016

Keywords

Comments

Numbers n such that A036839(A036839(n)) = n.
Subset of A161596.
Contains A002275(3*k) + 6*A002275(k) and 2*A002275(3*k)+6*A002275(2*k) for all k>0.
In particular, this sequence and A161596 are infinite.
Do all sufficiently large members of the sequence have the form A002275(3*k) + 6*A002275(k) or 2*A002275(3*k)+6*A002275(2*k)?

Examples

			78 is in the sequence because A036839(78) = 156 and A036839(156) = 78.
		

Crossrefs

Programs

  • Maple
    rev:= proc(n) local t,L;
       L:= convert(n,base,10);
       add(10^j*L[-1-j],j=0..nops(L)-1)
    end proc:
    sord:= proc(n) local L,t;
      L:= sort(convert(n,base,10),`>`);
      add(10^j*L[1+j],j=0..nops(L)-1)
    end proc:
    rats:= proc(n) option remember;  sord(n + rev(n)) end proc:
    Res:= NULL:
    for d from 1 to 15 do
      for x1 from 0 to d do
        for x2 from 0 to d-x1 do
          for x3 from 0 to d-x1-x2 do
             for x4 from 0 to d-x1-x2-x3 do
               for x5 from 0 to d-x1-x2-x3-x4 do
                 for x6 from 0 to d-x1-x2-x3-x4-x5 do
                   for x7 from 0 to d-x1-x2-x3-x4-x5-x6 do
                     for x8 from 0 to d-x1-x2-x3-x4-x5-x6-x7 do
                       x9:= d-x1-x2-x3-x4-x5-x6-x7-x8;
                       L:= [1$x1,2$x2,3$x3,4$x4,5$x5,6$x6,7$x7,8$x8,9$x9];
                       x:= add(L[-i]*10^(i-1),i=1..d);
                       if rats(rats(x)) = x then Res:= Res,x fi
    od od od od od od od od od:
    sort([Res]);
Showing 1-4 of 4 results.