login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A040015 Continued fraction for sqrt(20). 4

%I #24 Dec 27 2023 00:11:53

%S 4,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,

%T 8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,

%U 8,2,8,2,8,2,8,2,8,2,8,2,8

%N Continued fraction for sqrt(20).

%H Harry J. Smith, <a href="/A040015/b040015.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_02">Index entries for linear recurrences with constant coefficients</a>, signature (0, 1).

%e 4.472135954999579392818347337... = 4 + 1/(2 + 1/(8 + 1/(2 + 1/(8 + ...)))). - _Harry J. Smith_, Jun 03 2009

%p Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):

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

%t PadRight[{4},120,{8,2}] (* _Harvey P. Dale_, Jul 17 2023 *)

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

%Y Cf. A010476 Decimal expansion. - _Harry J. Smith_, Jun 03 2009

%K nonn,cofr,easy

%O 0,1

%A _N. J. A. Sloane_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 17:08 EDT 2024. Contains 371749 sequences. (Running on oeis4.)