login
A010171
Continued fraction for sqrt(103).
2
10, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6, 20
OFFSET
0,1
MATHEMATICA
ContinuedFraction[Sqrt[103], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 10 2011 *)
PadRight[{10}, 120, {20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6}] (* Harvey P. Dale, Mar 25 2024 *)
PROG
(Python)
from sympy import sqrt
from sympy.ntheory.continued_fraction import continued_fraction_iterator
def aupton(terms):
gen = continued_fraction_iterator(sqrt(103))
return [next(gen) for i in range(terms)]
print(aupton(85)) # Michael S. Branicky, Oct 06 2021
(PARI) a(n)=if(n, [20, 6, 1, 2, 1, 1, 9, 1, 1, 2, 1, 6][n%12+1], 10) \\ Charles R Greathouse IV, May 28 2026
CROSSREFS
Cf. A187768 (sqrt(103)).
Sequence in context: A281400 A283726 A370388 * A006518 A391385 A094175
KEYWORD
nonn,cofr,easy
STATUS
approved