OFFSET
-2,6
LINKS
G. C. Greubel, Table of n, a(n) for n = -2..1000
EXAMPLE
sqrt(sqrt(2) - 1) = 0.643594252905582624735443437418... = [0; 1, 1, 1, 4, 6, 1, 2, 2, 2, 1, 1, 6, ...], the convergents of which are 0/1, 1/0, [0/1], 1, 1/2, 2/3, 9/14, 56/87, 65/101, 186/289, 437/679, 1060/1647, 1497/2326, ..., with brackets marking index 0. Those prior to index 0 are for initializing the recurrence.
MATHEMATICA
nmax = 100; cfrac = ContinuedFraction[ Sqrt[Sqrt[2] - 1], nmax + 1]; Join[ {0, 1}, Numerator[ Table[ FromContinuedFraction[ Take[cfrac, j] ], {j, 1, nmax + 1} ] ] ]
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
Stuart Clary, Jan 14 2009
STATUS
approved