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.
%I A040031 #29 Jul 27 2025 04:20:11 %S A040031 6,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6, %T A040031 12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12,6,12, %U A040031 6,12,6,12,6,12,6,12,6,12,6 %N A040031 Continued fraction for sqrt(38). %D A040031 James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 276. %H A040031 Harry J. Smith, <a href="/A040031/b040031.txt">Table of n, a(n) for n = 0..20000</a> %H A040031 G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a> %H A040031 <a href="/index/Con#confC">Index entries for continued fractions for constants</a> %H A040031 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1). %F A040031 From _Stefano Spezia_, Jul 27 2025: (Start) %F A040031 a(n) = 6*A040001(n). %F A040031 G.f.: 6*(1 + x + x^2)/(1 - x^2). (End) %e A040031 6.1644140029689764502501923... = 6 + 1/(6 + 1/(12 + 1/(6 + 1/(12 + ...)))). - _Harry J. Smith_, Jun 04 2009 %p A040031 Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'): %t A040031 ContinuedFraction[Sqrt[38],300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 06 2011 *) %o A040031 (PARI) { allocatemem(932245000); default(realprecision, 38000); x=contfrac(sqrt(38)); for (n=0, 20000, write("b040031.txt", n, " ", x[n+1])); } \\ _Harry J. Smith_, Jun 04 2009 %Y A040031 Cf. A010492 (decimal expansion), A040001. %K A040031 nonn,cofr,easy %O A040031 0,1 %A A040031 _N. J. A. Sloane_