%I #25 Dec 14 2023 05:29:15
%S 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 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 6,2,6,2,6,2,6,2,6,2,6,2,6
%N Continued fraction for sqrt(12).
%C Eventual period is (2,6). - _Zak Seidov_, Mar 05 2011
%H Harry J. Smith, <a href="/A040008/b040008.txt">Table of n, a(n) for n = 0..20000</a>
%H G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>
%H <a href="/index/Con#confC">Index entries for continued fractions for constants</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0, 1).
%e 3.464101615137754587054892683... = 3 + 1/(2 + 1/(6 + 1/(2 + 1/(6 + ...)))). - _Harry J. Smith_, Jun 02 2009
%p Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
%t ContinuedFraction[Sqrt[12],300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 05 2011 *)
%o (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 Cf. A010469 Decimal expansion. - _Harry J. Smith_, Jun 02 2009
%K nonn,cofr,easy
%O 0,1
%A _N. J. A. Sloane_
|