Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A040013
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A040013 Continued fraction for sqrt(18). +0
2
4, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4, 8, 4 (list; graph; listen)
OFFSET

0,1

LINKS

Harry J. Smith, Table of n, a(n) for n=0,...,20000

G. Xiao, Contfrac

Index entries for continued fractions for constants

FORMULA

a(n)=6+2*(-1)^n-4*[C(2*n,n) mod 2], with n>=0 - Paolo P. Lava (ppl(AT)spl.at), Mar 03 2008

EXAMPLE

4.242640687119285146405066172... = 4 + 1/(4 + 1/(8 + 1/(4 + 1/(8 + ...)))) [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 03 2009]

MAPLE

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

P:=proc(n) local i; for i from 0 by 1 to n do print(6+2*(-1)^i-4*(binomial(2*i, i) mod 2)); od; end: P(100); - Paolo P. Lava (ppl(AT)spl.at), Mar 03 2008

PROGRAM

(PARI) { allocatemem(932245000); default(realprecision, 31000); x=contfrac(sqrt(18)); for (n=0, 20000, write("b040013.txt", n, " ", x[n+1])); } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 03 2009]

CROSSREFS

Cf. A010474 Decimal expansion. [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 03 2009]

Sequence in context: A137797 A140874 A021227 this_sequence A153132 A167275 A082075

Adjacent sequences: A040010 A040011 A040012 this_sequence A040014 A040015 A040016

KEYWORD

nonn,cofr,easy

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research