cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A126664 Continued fraction expansion of sqrt(3)/2.

Original entry on oeis.org

0, 1, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6
Offset: 0

Views

Author

Zerinvary Lajos, Feb 10 2007

Keywords

Comments

Also continued fraction expansion of sin(Pi/3).

Crossrefs

Cf. A010527.

Programs

  • Mathematica
    ContinuedFraction[Sqrt[3]/2,120] (* or *) PadRight[{0,1},120,{6,2}] (* Harvey P. Dale, May 14 2016 *)

Formula

a(n) = 2*(2+(-1)^n) for n>1. a(n) = a(n-2) for n>3. G.f.: -x*(x^2+6*x+1) / ((x-1)*(x+1)). - Colin Barker, Jan 10 2014

Extensions

More terms from N. J. A. Sloane, Dec 29 2008