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.

A040024 Continued fraction for sqrt(30).

This page as a plain text file.
%I A040024 #30 Aug 25 2025 11:10:06
%S A040024 5,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,
%T A040024 10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,
%U A040024 2,10,2,10,2,10,2,10,2,10,2
%N A040024 Continued fraction for sqrt(30).
%D A040024 James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 276.
%H A040024 Harry J. Smith, <a href="/A040024/b040024.txt">Table of n, a(n) for n = 0..20000</a>
%H A040024 G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>
%H A040024 <a href="/index/Con#confC">Index entries for continued fractions for constants</a>
%H A040024 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).
%F A040024 G.f.: (5 + 2*x + 5*x^2)/(1 - x^2). - _Stefano Spezia_, Jul 26 2025
%e A040024 5.4772255750516611345696978... = 5 + 1/(2 + 1/(10 + 1/(2 + 1/(10 + ...)))). - _Harry J. Smith_, Jun 04 2009
%p A040024 Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
%t A040024 ContinuedFraction[Sqrt[30],300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 06 2011 *)
%o A040024 (PARI) { allocatemem(932245000); default(realprecision, 28000); x=contfrac(sqrt(30)); for (n=0, 20000, write("b040024.txt", n, " ", x[n+1])); } \\ _Harry J. Smith_, Jun 04 2009
%Y A040024 Cf. A010485 (decimal expansion), A010700.
%K A040024 nonn,cofr,easy,changed
%O A040024 0,1
%A A040024 _N. J. A. Sloane_