|
Search: id:A010121
|
|
|
| A010121 |
|
Continued fraction for sqrt(7). |
|
+0 5
|
|
| 2, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 4, 1, 1, 1, 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)=(1/24)*{-11*(n mod 4)+7*[(n+1) mod 4]+7*[(n+2) mod 4]+25*[(n+3) mod 4]}-2*[C(2*n,n) mod 2], with n>=0 [From Paolo P. Lava (ppl(AT)spl.at), Jun 11 2009]
G.f.: -(2*x^2+3*x+2)*(x^2-x+1)/((x-1)*(1+x)*(x^2+1)). a(n)=a(n-4), n>4. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 17 2009]
|
|
EXAMPLE
|
2.645751311064590590501615753... = 2 + 1/(1 + 1/(1 + 1/(1 + 1/(4 + ...)))) [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 01 2009]
|
|
PROGRAM
|
(PARI) { allocatemem(932245000); default(realprecision, 13000); x=contfrac(sqrt(7)); for (n=0, 20000, write("b010121.txt", n, " ", x[n+1])); } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 01 2009]
|
|
CROSSREFS
|
Cf. A010465 Decimal expansion. [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jun 01 2009]
Sequence in context: A067856 A160467 A122374 this_sequence A157114 A156786 A156141
Adjacent sequences: A010118 A010119 A010120 this_sequence A010122 A010123 A010124
|
|
KEYWORD
|
nonn,cofr
|
|
AUTHOR
|
N. J. A. Sloane (njas(AT)research.att.com).
|
|
|
Search completed in 0.002 seconds
|