|
|
A239899
|
|
a(0)=2, a(1)=5; thereafter a(n) = product of all preceding terms, minus 1.
|
|
0
|
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (a(n-1)+1)*a(n-1)-1, for n > 2. - Zak Seidov, Apr 06 2014
|
|
EXAMPLE
|
(9 + 1)*9 - 1 = 89, (89 + 1)*89 - 1 = 8009, (8009 + 1)*8009 - 1 = 64152089. - Zak Seidov, Apr 06 2014
|
|
PROG
|
(Magma) I:=[2, 5, 9]; [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
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|