OFFSET
-2,4
EXAMPLE
2^(1/4) - 2^(-1/4) = 0.348310699749006523686374494327... = [0; 2, 1, 6, 1, 3, 32, 18, 3, 8, 1, 2, 2, ...], the convergents of which are 0/1, 1/0, [0/1], 1/2, 1/3, 7/20, 8/23, 31/89, 1000/2871, 18031/51767, 55093/158172, 458775/1317143, 513868/1475315, ..., with brackets marking index 0. Those prior to index 0 are for initializing the recurrence.
MATHEMATICA
nmax = 100; cfrac = ContinuedFraction[ 2^(1/4) - 2^(-1/4), nmax + 1]; Join[ {1, 0}, Denominator[ Table[ FromContinuedFraction[ Take[cfrac, j] ], {j, 1, nmax + 1} ] ] ]
CROSSREFS
KEYWORD
nonn,frac,easy
AUTHOR
Stuart Clary, Jan 14 2009
STATUS
approved