login
A239899
a(0)=2, a(1)=5; thereafter a(n) = product of all preceding terms, minus 1.
0
2, 5, 9, 89, 8009, 64152089, 4115490587216009, 16937262773463574696951813104089
OFFSET
0,1
FORMULA
a(n) == 8 mod 9, for n > 2. - Ivan N. Ianakiev, Apr 06 2014
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
N. J. A. Sloane, Apr 05 2014
STATUS
approved