OFFSET
1,1
COMMENTS
General formula for a(n+1)=a(n)^2+2*a(n)-2 and a(1)=k+1 is a(n)=Floor[((k + Sqrt[k^2 + 4])/2)^(2^((n+1) - 1))
FORMULA
From Peter Bala, Nov 12 2012: (Start)
a(n) = alpha^(2^(n-1)) + (1/alpha)^(2^(n-1)) - 1, where alpha := 4 + sqrt(15).
a(n) = 2*A005828(n) - 1.
Recurrence: a(n) = 9*{product {k = 1..n-1} a(k)} - 2 with a(1) = 7.
Product {n = 1..inf} (1 + 1/a(n)) = 3/10*sqrt(15).
Product {n = 1..inf} (1 + 2/(a(n) + 1)) = sqrt(5/3).
(End)
MATHEMATICA
aa = {}; k = 7; Do[AppendTo[aa, k]; k = k^2 + 2 k - 2, {n, 1, 10}]; aa
or
k =6; Table[Floor[((k + Sqrt[k^2 + 4])/2)^(2^(n - 1))], {n, 2, 7}] (*Artur Jasinski*)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Oct 11 2008
STATUS
approved