OFFSET
1,2
COMMENTS
Cycle of length 54. [Corrected by N. J. A. Sloane, Aug 02 2009]
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
Nest[Append[#, IntegerReverse[#[[-1]] + 4]] &, {1}, 60] (* Michael De Vlieger, Mar 14 2021 *)
PROG
(Python)
def A119031(N=60, a=1, d=4): # optional args: # terms, initial value, increment
for _ in range(N): yield a; a=int(str(a+d)[::-1])
list(A119031()) # M. F. Hasler, Mar 15 2022
(PARI) a=6; A119031=vector(60, i, a=fromdigits(Vecrev(digits(a+4)))) \\ M. F. Hasler, Mar 15 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, May 09 2006
STATUS
approved