OFFSET
1,1
COMMENTS
LINKS
Stanislav Sykora, Table of n, a(n) for n = 1..1000
FORMULA
sqrt(7) = 2+2/(3+3/(30+30/(34+34/(111+...)))).
MATHEMATICA
BlazysExpansion[n_, mx_] := Block[{k = 1, x = n, lmt = mx + 1, s, lst = {}}, While[k < lmt, s = Floor[x]; x = 1/(x/s - 1); AppendTo[lst, s]; k++]; lst]; BlazysExpansion[Sqrt@7, 32] (* Robert G. Wilson v, May 22 2014 *)
PROG
(PARI) bx(x, nmax)={local(c, v, k); // Blazys expansion function
v = vector(nmax); c = x; for(k=1, nmax, v[k] = floor(c); c = v[k]/(c-v[k]); ); return (v); }
bx(sqrt(7), 1000) // Execution; use very high real precision
CROSSREFS
KEYWORD
nonn
AUTHOR
Stanislav Sykora, Jan 06 2014
STATUS
approved