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.

A010159 Continued fraction for sqrt(86).

This page as a plain text file.
%I A010159 #33 Dec 27 2023 00:18:56
%S A010159 9,3,1,1,1,8,1,1,1,3,18,3,1,1,1,8,1,1,1,3,18,3,1,1,1,8,1,1,1,3,18,3,1,
%T A010159 1,1,8,1,1,1,3,18,3,1,1,1,8,1,1,1,3,18,3,1,1,1,8,1,1,1,3,18,3,1,1,1,8,
%U A010159 1,1,1,3,18,3,1,1,1,8,1,1
%N A010159 Continued fraction for sqrt(86).
%H A010159 Harry J. Smith, <a href="/A010159/b010159.txt">Table of n, a(n) for n = 0..20000</a>
%H A010159 G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>
%H A010159 <a href="/index/Con#confC">Index entries for continued fractions for constants</a>
%H A010159 <a href="/index/Rec#order_10">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,0,0,0,0,0,1).
%e A010159 9.273618495495703752516416073... = 9 + 1/(3 + 1/(1 + 1/(1 + 1/(1 + ...)))). - _Harry J. Smith_, Jun 10 2009
%t A010159 ContinuedFraction[Sqrt[86],300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 09 2011 *)
%t A010159 PadRight[{9},120,{18,3,1,1,1,8,1,1,1,3}] (* _Harvey P. Dale_, Dec 13 2018 *)
%o A010159 (Python)
%o A010159 from sympy import sqrt
%o A010159 from sympy.ntheory.continued_fraction import continued_fraction_iterator
%o A010159 def aupton(terms):
%o A010159     gen = continued_fraction_iterator(sqrt(86))
%o A010159     return [next(gen) for i in range(terms)]
%o A010159 print(aupton(78)) # _Michael S. Branicky_, Sep 03 2021
%Y A010159 Cf. A010537 (decimal expansion). - _Harry J. Smith_, Jun 10 2009
%K A010159 nonn,cofr
%O A010159 0,1
%A A010159 _N. J. A. Sloane_