OFFSET
1,1
COMMENTS
a(n) is the next-to-least multiple of the n-th prime that is > a(n-1).
If we instead had the sequence where a(1)=2 and where a(n) is the least multiple of the n-th prime that is > a(n-1), then a(n) would equal the n-th prime for all positive integers n.
MAPLE
A138621 := proc(n) option remember ; local a ; if n = 1 then RETURN(2) ; fi ; p := ithprime(n) ; p*(floor(A138621(n-1)/p)+2) ; end: seq(A138621(n), n=1..80) ; # R. J. Mathar, May 20 2008
MATHEMATICA
a = {2}; Do[AppendTo[a, Prime[n]*(Floor[a[[ -1]]/Prime[n]] + 2)], {n, 2, 60}]; a (* Stefan Steinerberger, May 18 2008 *)
nxt[{n_, a_}]:={n+1, Prime[n+1](Floor[a/Prime[n+1]]+2)}; Transpose[NestList[nxt, {1, 2}, 50]][[2]] (* Harvey P. Dale, Mar 18 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, May 14 2008
EXTENSIONS
More terms from Stefan Steinerberger and R. J. Mathar, May 18 2008
STATUS
approved