login
A239900
a(0)=2, a(1)=5; thereafter a(n) = product of all preceding terms, plus 1.
3
2, 5, 11, 111, 12211, 149096311, 22229709804712411, 494159998001727075769152612720511
OFFSET
0,1
MATHEMATICA
nxt[{t_, a_}]:=Module[{k=t+1}, {t k, k}]; Join[{2}, NestList[nxt, {10, 5}, 7][[All, 2]]] (* Harvey P. Dale, Oct 25 2020 *)
PROG
(Magma) I:=[2, 5, 11]; [n le 3 select I[n] else Self(n-1)*(Self(n-1)-1)+1: n in [1..10]]; // Vincenzo Librandi, May 22 2014
CROSSREFS
A variant of A144784. Cf. A239900.
Sequence in context: A158999 A283300 A069506 * A123165 A098438 A225955
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 05 2014
EXTENSIONS
a(6) corrected by Harvey P. Dale, Oct 25 2020
STATUS
approved