login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A010159
Continued fraction for sqrt(86).
3
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, 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, 1, 1, 1, 3, 18, 3, 1, 1, 1, 8, 1, 1
OFFSET
0,1
EXAMPLE
9.273618495495703752516416073... = 9 + 1/(3 + 1/(1 + 1/(1 + 1/(1 + ...)))). - Harry J. Smith, Jun 10 2009
MATHEMATICA
ContinuedFraction[Sqrt[86], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 09 2011 *)
PadRight[{9}, 120, {18, 3, 1, 1, 1, 8, 1, 1, 1, 3}] (* Harvey P. Dale, Dec 13 2018 *)
PROG
(Python)
from sympy import sqrt
from sympy.ntheory.continued_fraction import continued_fraction_iterator
def aupton(terms):
gen = continued_fraction_iterator(sqrt(86))
return [next(gen) for i in range(terms)]
print(aupton(78)) # Michael S. Branicky, Sep 03 2021
CROSSREFS
Cf. A010537 (decimal expansion). - Harry J. Smith, Jun 10 2009
Sequence in context: A198546 A160579 A134897 * A097528 A065416 A093312
KEYWORD
nonn,cofr
STATUS
approved