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.

A040008 Continued fraction for sqrt(12).

This page as a plain text file.
%I A040008 #32 Aug 22 2025 16:02:27
%S A040008 3,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,
%T A040008 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,
%U A040008 6,2,6,2,6,2,6,2,6,2,6,2,6
%N A040008 Continued fraction for sqrt(12).
%C A040008 Eventual period is (2,6). - _Zak Seidov_, Mar 05 2011
%C A040008 Decimal expansion of 323/990. - _R. J. Mathar_, Aug 22 2025
%D A040008 James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 276.
%H A040008 Harry J. Smith, <a href="/A040008/b040008.txt">Table of n, a(n) for n = 0..20000</a>
%H A040008 G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>
%H A040008 <a href="/index/Con#confC">Index entries for continued fractions for constants</a>
%H A040008 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).
%F A040008 G.f.: (3 + 2*x + 3*x^2)/(1 - x^2). - _Stefano Spezia_, Jul 26 2025
%e A040008 3.464101615137754587054892683... = 3 + 1/(2 + 1/(6 + 1/(2 + 1/(6 + ...)))). - _Harry J. Smith_, Jun 02 2009
%p A040008 Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
%t A040008 ContinuedFraction[Sqrt[12],300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 05 2011 *)
%o A040008 (PARI) { allocatemem(932245000); default(realprecision, 24000); x=contfrac(sqrt(12)); for (n=0, 20000, write("b040008.txt", n, " ", x[n+1])); } \\ _Harry J. Smith_, Jun 02 2009
%Y A040008 Cf. A010469 Decimal expansion, A010696.
%K A040008 nonn,cofr,easy,changed
%O A040008 0,1
%A A040008 _N. J. A. Sloane_