OFFSET
1,1
EXAMPLE
a(1)=2;
a(2)=3 > 2 = 1*2;
a(3)=7 > 6 = 2*3;
a(4)=23 > 21 = 3*7;
a(5)=23 > 20 = 4*(2+3);
a(6)=29 > 25 = 5*(2+3);
a(7)=67 > 66 = 6*(2+9);
a(8)=97 > 91 = 7*(6+7);
a(9)=131 > 128 = 8*(9+7);
a(10)=47 > 45 = 9*(1+3+1).
MAPLE
A007953 := proc(n) add(d, d=convert(n, base, 10)) ; end proc: A158054 := proc() option remember; if n = 1 then 2; else (n-1)*A007953(procname(n-1)) ; nextprime(%) ; end if; end proc: seq(A158054(n), n=1..120) ; # R. J. Mathar, May 19 2010
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Juri-Stepan Gerasimov, Mar 12 2009
EXTENSIONS
Corrected (193 replaced by 199, all terms from a(32) on replaced) by R. J. Mathar, May 19 2010
Edited by Jon E. Schoenfield, Feb 17 2019
STATUS
approved