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!)
A040319 Continued fraction for sqrt(338). 1
18, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2, 36, 2, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

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

Index entries for continued fractions for constants

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

FORMULA

a(n)=(1/25)*{-149*(n mod 5)+16*[(n+1) mod 5]+21*[(n+2) mod 5]+26*[(n+3) mod 5]+191*[(n+4) mod 5]}-18*[C(2*n,n) mod 2], with n>=0 [From Paolo P. Lava, Apr 27 2009]

MAPLE

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

MATHEMATICA

ContinuedFraction[Sqrt[338], 120] (* or *) PadRight[{18}, 120, {36, 2, 1, 1, 2}] (* Harvey P. Dale, Mar 15 2018 *)

CROSSREFS

Sequence in context: A182052 A223520 A242567 * A040318 A040320 A040321

Adjacent sequences:  A040316 A040317 A040318 * A040320 A040321 A040322

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 June 20 00:16 EDT 2021. Contains 345154 sequences. (Running on oeis4.)