|
|
A016081
|
|
Add 4, then reverse digits; start with 3.
|
|
5
|
|
|
3, 7, 11, 51, 55, 95, 99, 301, 503, 705, 907, 119, 321, 523, 725, 927, 139, 341, 543, 745, 947, 159, 361, 563, 765, 967, 179, 381, 583, 785, 987, 199, 302, 603, 706, 17, 12, 61, 56, 6, 1, 5, 9, 31, 53, 75, 97, 101, 501, 505, 905, 909, 319, 323, 723, 727, 137, 141, 541
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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.)
|
|
LINKS
|
|
|
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])
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|