OFFSET
1,2
COMMENTS
LINKS
MAPLE
digrev:= proc(x) local L, j;
L:= convert(x, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L));
end proc:
A[1]:= 1:
for n from 2 to 30 do A[n]:= n*digrev(A[n-1]) od:
seq(A[n], n=1..30); # Robert Israel, Feb 01 2015
MATHEMATICA
nxt[{n_, a_}]:={n+1, IntegerReverse[a](n+1)}; Transpose[NestList[nxt, {1, 1}, 20]] [[2]] (* The program uses the IntegerReverse function from Mathematica version 10 *) (* Harvey P. Dale, Apr 21 2016 *)
PROG
(Haskell)
a034874 n = a034874_list !! (n-1)
a034874_list = 1 : f 2 1 where
f x y = z : f (x + 1) z where z = (x * a004086 y)
-- Reinhard Zumkeller, Jan 02 2012
(Python)
A034874_list, a = [1], 1
for n in range(2, 100):
....a = n*int(str(a)[::-1])
....A034874_list.append(a) # Chai Wah Wu, Feb 01 2015
CROSSREFS
KEYWORD
easy,nonn,base,nice
AUTHOR
STATUS
approved