OFFSET
1,2
COMMENTS
See A046854 for a triangle of coefficients of the numerators and denominators of f(x,n). Note that the limit of f(1,n) is the golden ratio.
FORMULA
Equals (1+sqrt(2+sqrt(5)))/2. - Vaclav Kotesovec, Oct 19 2014
EXAMPLE
limit = 1.52908551363574612516099052379022521061936504983890974314077117
63202398115791894627711485520734841970516965799404...
n f(n,x) Re(f(n,1+i)) Im(f(n,1+i))
1 1 1 0
2 1 + x 2 1
3 (1 + x + x^2)/ (1 + x) 7/5 4/5
4 (1 + 2x + x^2 + x^3)/(1 + x + x^2) 20/13 9/13
Re(f(11,1+i) = 815/533 = 1.529162...
Im(f(11,1+i) = 396/533 = 0.742964...
MAPLE
evalf((1+sqrt(2+sqrt(5)))/2, 120); # Vaclav Kotesovec, Oct 19 2014
MATHEMATICA
$RecursionLimit = Infinity; $MaxExtraPrecision = Infinity;
f[x_, n_] := x + 1/f[x, n - 1]; f[x_, 1] = 1; t = Table[Factor[f[x, n]], {n, 1, 12}]; u = t /. x -> I + 1; {Re[u], Im[u]}
{N[Re[u], 12], N[Im[u], 12]}
t = Table[Factor[f[x, n]], {n, 1, 300}]; u = t /. x -> I + 1;
r1 = N[Re[u][[300]], 130]
r2 = N[Im[u][[300]], 130]
d1 = RealDigits[r1] (* A248749 *)
d2 = RealDigits[r2] (* A248750 *)
CROSSREFS
KEYWORD
AUTHOR
Clark Kimberling, Oct 13 2014
STATUS
approved