OFFSET
1,1
COMMENTS
At 41st term, 1, the sequence joins the trajectory for a(1)=1, A119031. Cycle of length 54. - Zak Seidov, May 09 2006. (Corrected by N. J. A. Sloane, Aug 02 2009.)
MAPLE
rev:=proc(n) local nn: nn:=convert(n, base, 10): add(nn[j]*10^(nops(nn)-j), j= 1..nops(nn)) end proc: a[1]:=3: for n from 2 to 60 do a[n]:=rev(4+a[n-1]) end do: seq(a[n], n=1..60); # Emeric Deutsch, Aug 26 2007
MATHEMATICA
NestList[FromDigits[Reverse[IntegerDigits[#+4]]]&, 3, 60] (* Harvey P. Dale, Oct 01 2015 *)
PROG
(PARI) a=26; A016081=vector(99, i, a=fromdigits(Vecrev(digits(a+4)))) \\ M. F. Hasler, Mar 15 2022
(Python)
def A016081(N=99, a=3, d=4): # optional args: # terms, initial value, increment
for _ in range(N): yield a; a=int(str(a+d)[::-1])
list(A016081()) # M. F. Hasler, Mar 15 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Corrected and extended by Franklin T. Adams-Watters, Mar 30 2006
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, Aug 23 2007
Name edited by M. F. Hasler, Mar 15 2022
STATUS
approved