OFFSET
0,1
REFERENCES
Berndt and Rankin, "Ramanujan, letters and commentary", p. 275
Bruce Berndt, "Ramanujan's notebook", part II, Springer Verlag, pp. 107-112
FORMULA
a(n) = A003096(n) + 1.
EXAMPLE
2 = sqrt(1+sqrt(1+sqrt(64))) hence a(3)=64.
MATHEMATICA
a[0] = 3; a[n_] := a[n] = (a[n-1]-1)^2; Table[ a[n], {n, 0, 9}] (* Jean-François Alcover, Dec 14 2011, after Pari *)
NestList[(#-1)^2&, 3, 10] (* Harvey P. Dale, Feb 04 2012 *)
PROG
(PARI) a(n)=if(n<1, 3*(n==0), (a(n-1)-1)^2)
(Haskell)
a073015 n = a073015_list !! n
a073015_list = iterate (\x -> (x - 1) ^ 2) 3 -- Reinhard Zumkeller, Jul 16 2012
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Benoit Cloitre, Aug 03 2002
STATUS
approved