OFFSET
1,2
LINKS
N. J. A. Sloane and others, Sequences of RADD type, OEIS wiki.
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
MAPLE
read transforms; t1:=[1]; for n from 1 to 80 do t1:=[op(t1), 4+digrev(t1[n])]; od: # N. J. A. Sloane
MATHEMATICA
f[n_] := 4 + FromDigits@ Reverse@ IntegerDigits@n; NestList[ f@# &, 1, 57] (* and *)
(* to view the cycle *) NestWhileList[ f@# &, 1, UnsameQ, All] (* Robert G. Wilson v, May 09 2006 *)
PROG
(PARI) a(n)=if(n>1, my(t=6); for(k=1, n%54, t=fromdigits(Vecrev(digits(t)))+4); t, 1) \\ Charles R Greathouse IV, Nov 07 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 06 2006
STATUS
approved