OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
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]] == 7, AppendTo[t, n]]]]; t (* T. D. Noe, Apr 04 2014 *)
cf7Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {0}, ContinuedFraction[ s] [[2]]]; len=Length[cf]; OddQ[len]&&Count[Take[cf, {(len+1)/2-1, (len+1)/2+1}], 7]>1]; Select[Range[15000], cf7Q]//Quiet (* Harvey P. Dale, Sep 14 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Initial erroneous term 50 removed by T. D. Noe, Apr 04 2014
STATUS
approved