OFFSET
1,1
COMMENTS
(99*m)^2+2*m for m >= 1 is a proper subsequence (it is a subsequence, see comment in A031749) as the term 97042400 is not of this form. - Chai Wah Wu, Jun 19 2016
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
MATHEMATICA
lt99Q[n_]:=Module[{s=Sqrt[n], lt}, If[IntegerQ[s], lt=1, lt= Min[ ContinuedFraction[ s][[2]]]]; lt==99]; Select[Range[8000000], lt99Q] (* Harvey P. Dale, Apr 20 2013 *)
PROG
(Python)
from sympy import continued_fraction_periodic
A031777_list = [n for n, d in ((n, continued_fraction_periodic(0, 1, n)[-1]) for n in range(1, 10**5)) if isinstance(d, list) and min(d) == 99] # Chai Wah Wu, Jun 10 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved