The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A118295 Start with 20 and repeatedly reverse the digits and add 1 to get the next term. 0

%I #17 Jan 08 2024 10:56:18

%S 20,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,

%T 7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,

%U 3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10

%N Start with 20 and repeatedly reverse the digits and add 1 to get the next term.

%C After 1 step enters a cycle of length 9.

%H N. J. A. Sloane and others, <a href="/wiki/Sequences_of_RADD_type">Sequences of RADD type</a>, OEIS wiki.

%H <a href="/index/Rec#order_09">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,0,0,0,1).

%e After a(9) = 10 we get a(10) = (reversed digits of a(9)) + 1 = 01 + 1 = 2. - _David A. Corneth_, Jan 08 2024

%t PadRight[{20},100,Range[2,10]] (* _Paolo Xausa_, Jan 08 2024 *)

%o (PARI) a(n) = if(n == 1, return(20)); return(((n-1)%9) + 2) \\ _David A. Corneth_, Jan 08 2024

%Y Cf. A118551.

%Y Essentially the same as A117230.

%K nonn,easy,base

%O 1,1

%A Luc Stevens (lms022(AT)yahoo.com), May 14 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 14 09:52 EDT 2024. Contains 372532 sequences. (Running on oeis4.)