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!)
A040240 Continued fraction for sqrt(257). 4
16, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
From Elmo R. Oliveira, Feb 13 2024: (Start)
a(n) = 32 for n >= 1.
G.f.: 16*(1+x)/(1-x).
E.g.f.: 32*exp(x) - 16.
a(n) = 16*A040000(n) = 8*A040002(n) = 4*A040012(n) = 2*A040056(n). (End)
EXAMPLE
16 + 1/(32 + 1/(32 + 1/(32 + 1/(32 + ...)))) = sqrt(257).
MAPLE
with(numtheory): Digits := 300: convert(evalf(sqrt(257)), confrac);
MATHEMATICA
Block[{$MaxExtraPrecision=1000}, ContinuedFraction[Sqrt[257], 100]] (* or *) PadRight[{16}, 100, {32}] (* Harvey P. Dale, Aug 15 2021 *)
PROG
(PARI) a(n)=if(n, 32, 16) \\ Charles R Greathouse IV, Apr 08 2012
CROSSREFS
Cf. A041480/A041481 (convergents).
Sequence in context: A132299 A240053 A059164 * A296761 A297288 A335246
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 April 24 13:41 EDT 2024. Contains 371957 sequences. (Running on oeis4.)