OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (terms 1..1000 from T. D. Noe and Georg Fischer)
MATHEMATICA
n = 1; t = {}; While[Length[t] < 50, n++; If[! IntegerQ[Sqrt[n]], c = ContinuedFraction[Sqrt[n]]; len = Length[c[[2]]]; If[OddQ[len] && c[[2, (len + 1)/2]] == 10 && c[[2, (len + 1)/2 - 1]] == 10, AppendTo[t, n]]]]; t (* T. D. Noe, Apr 04 2014; corrected by Georg Fischer, Jun 23 2019 *)
PROG
(Python)
from sympy.ntheory.continued_fraction import continued_fraction_periodic
A031423_list = []
for n in range(1, 10**4):
cf = continued_fraction_periodic(0, 1, n)
if len(cf) > 1 and len(cf[1]) > 1 and len(cf[1]) % 2 and cf[1][len(cf[1])//2] == 10:
A031423_list.append(n) # Chai Wah Wu, Sep 16 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(1) corrected by T. D. Noe, Apr 04 2014
a(1) = 26 removed by Georg Fischer, Jun 23 2019
STATUS
approved