login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A040386 Continued fraction for sqrt(407). 2
20, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1, 2, 1, 5, 40, 5, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..86.

Index entries for continued fractions for constants

Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 1).

FORMULA

a(n)=(1/30)*{-157*(n mod 6)-2*[(n+1) mod 6]+23*[(n+2) mod 6]+13*[(n+3) mod 6]+38*[(n+4) mod 6]+193*[(n+5) mod 6]}-20*[C(2*n,n) mod 2], with n>=0 [From Paolo P. Lava, Apr 30 2009]

MAPLE

with(numtheory): Digits := 300: convert(evalf(sqrt(407)), confrac);

MATHEMATICA

ContinuedFraction[Sqrt[407], 120] (* or *) PadRight[{20}, 120, {40, 5, 1, 2, 1, 5}] (* Harvey P. Dale, Jun 10 2018 *)

CROSSREFS

Sequence in context: A040388 A018816 A040389 * A309321 A104158 A068612

Adjacent sequences:  A040383 A040384 A040385 * A040387 A040388 A040389

KEYWORD

nonn,cofr,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 24 23:49 EST 2021. Contains 340414 sequences. (Running on oeis4.)