OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..97
EXAMPLE
a(4) = 41 because b(3) = 3*b(2)+1 = 3*3+1 = 10 and 4*10+1 = 41, which is prime.
b(n) = 1, 3, 10, 41, ... with least prime divisors a(n) = 1, 3, 2, 41, ....
MATHEMATICA
nxt[{n_, a_}]:={n+1, a(n+1)+1}; FactorInteger[#][[1, 1]]&/@NestList[nxt, {1, 1}, 40][[All, 2]] (* The program generates the first 41 terms of the sequence. *) (* Harvey P. Dale, Jun 21 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jun 17 2004
EXTENSIONS
Corrected and extended by Ray G. Opao, Aug 02 2004
Edited by Jonathan Sondow, Jan 09 2005
More terms from Michel Marcus, Mar 28 2020
More terms from Giovanni Resta, Mar 28 2020
STATUS
approved