OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (terms n = 1..500 from Harvey P. Dale)
MATHEMATICA
cfp7Q[n_]:=Module[{s=Sqrt[n]}, !IntegerQ[s]&&Length[ ContinuedFraction[ s][[2]]]==7]; Select[Range[6000], cfp7Q] (* Harvey P. Dale, Aug 11 2013 *)
PROG
(Python)
from sympy import continued_fraction_periodic
A010338_list = [n for n, s in ((i, continued_fraction_periodic(0, 1, i)[-1]) for i in range(1, 10**3)) if isinstance(s, list) and len(s) == 7] # Chai Wah Wu, Jun 08 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Walter Gilbert
STATUS
approved