OFFSET
0,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..20000
G. Xiao, Contfrac
Index entries for linear recurrences with constant coefficients, signature (1).
FORMULA
From Elmo R. Oliveira, Feb 07 2024: (Start)
a(n) = 14 for n >= 1.
G.f.: 7*(1+x)/(1-x).
E.g.f.: 14*exp(x) - 7.
a(n) = 7*A040000(n). (End)
EXAMPLE
7.07106781186547524400844... = 7 + 1/(14 + 1/(14 + 1/(14 + 1/(14 + ...)))). - Harry J. Smith, Jun 01 2009
MAPLE
Digits := 100: convert(evalf(sqrt(N)), confrac, 90, 'cvgts'):
MATHEMATICA
ContinuedFraction[Sqrt[50], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 07 2011 *)
PROG
(PARI) { allocatemem(932245000); default(realprecision, 47000); x=contfrac(sqrt(50)); for (n=0, 20000, write("b040042.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 01 2009
CROSSREFS
KEYWORD
nonn,cofr,easy
AUTHOR
STATUS
approved