login
A010172
Continued fraction for sqrt(106).
3
10, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2, 1, 1, 1, 1, 2, 3, 20, 3, 2
OFFSET
0,1
MATHEMATICA
ContinuedFraction[Sqrt[106], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 11 2011 *)
PadRight[{10}, 120, {20, 3, 2, 1, 1, 1, 1, 2, 3}] (* Harvey P. Dale, Aug 19 2021 *)
PROG
(Python)
from sympy import sqrt
from sympy.ntheory.continued_fraction import continued_fraction_iterator
def aupton(terms):
gen = continued_fraction_iterator(sqrt(106))
return [next(gen) for i in range(terms)]
print(aupton(82)) # Michael S. Branicky, Oct 03 2021
CROSSREFS
Sequence in context: A159005 A144859 A280519 * A370632 A224365 A087869
KEYWORD
nonn,cofr
STATUS
approved