The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A040033 Continued fraction for sqrt(40). 2
6, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
G. Xiao, Contfrac
EXAMPLE
6.3245553203367586639977870... = 6 + 1/(3 + 1/(12 + 1/(3 + 1/(12 + ...)))). - Harry J. Smith, Jun 05 2009
MAPLE
Digits := 100: convert(evalf(sqrt(N)), confrac, 90, 'cvgts'):
MATHEMATICA
ContinuedFraction[Sqrt[40], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 06 2011 *)
LinearRecurrence[{0, 1}, {6, 3, 12}, 100] (* or *) PadRight[{6}, 100, {12, 3}] (* Harvey P. Dale, Mar 03 2018 *)
PROG
(PARI) { allocatemem(932245000); default(realprecision, 32000); x=contfrac(sqrt(40)); for (n=0, 20000, write("b040033.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 05 2009
CROSSREFS
Cf. A010494 Decimal expansion. - Harry J. Smith, Jun 05 2009
Sequence in context: A131894 A368679 A335393 * A165998 A322091 A329583
KEYWORD
nonn,cofr,easy
AUTHOR
STATUS
approved

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 June 1 12:19 EDT 2024. Contains 373023 sequences. (Running on oeis4.)