OFFSET
1,1
COMMENTS
Enters the cycle of length 54 given in A119031 at a(19) = 1. - M. F. Hasler, Mar 15 2022
MATHEMATICA
Reversal = ToExpression @ StringReverse @ ToString[ # ] &; a[ 1 ]=10; a[ n_Integer ] := Reversal[ a[ n - 1 ] + 4 ]; Table[ a[ n ], {n, 1, 80} ] (* Robert G. Wilson v *)
NestList[FromDigits[Reverse[IntegerDigits[# + 4]]] &, 10, 70] (* Harvey P. Dale, Jan 18 2011 *)
PROG
(PARI) A016082=vector(99, i, a=if(i>1, fromdigits(Vecrev(digits(a+4))), 10)) \\ M. F. Hasler, Mar 15 2022
(Python)
def A016082(N=99, a=10, d=4): # optional args: # terms, initial value, increment
for _ in range(N): yield a; a=int(str(a+d)[::-1])
list(A016082()) # M. F. Hasler, Mar 15 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 04 2010
Name edited by M. F. Hasler, Mar 15 2022
STATUS
approved