login
Continued fraction for sqrt(29).
4

%I #34 Dec 27 2023 00:24:21

%S 5,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,

%T 2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,

%U 1,1,2,10,2,1,1,2,10,2,1,1,2,10,2,1,1,2,10

%N Continued fraction for sqrt(29).

%H Harry J. Smith, <a href="/A010128/b010128.txt">Table of n, a(n) for n = 0..20000</a>

%H G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>

%H <a href="/index/Con#confC">Index entries for continued fractions for constants</a>

%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 1).

%e 5.385164807134504031250710491... = 5 + 1/(2 + 1/(1 + 1/(1 + 1/(2 + ...)))). - _Harry J. Smith_, Jun 04 2009

%t ContinuedFraction[Sqrt[29], 300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 06 2011 *)

%t PadRight[{5},120,{10,2,1,1,2}] (* _Harvey P. Dale_, Apr 18 2017 *)

%o (PARI) { allocatemem(932245000); default(realprecision, 18000); x=contfrac(sqrt(29)); for (n=0, 20000, write("b010128.txt", n, " ", x[n+1])); } \\ _Harry J. Smith_, Jun 04 2009

%Y Cf. A010484 (Decimal expansion). - _Harry J. Smith_, Jun 04 2009

%K nonn,cofr

%O 0,1

%A _N. J. A. Sloane_