OFFSET
1,1
COMMENTS
All k = m^2 + 1 (A002522) belong in the sequence because the periodic part of the continued fraction of sqrt(k) has a single element.
EXAMPLE
a(5)=7 because the periodic part of the continued fraction of sqrt(7) is (1,1,1,4) which is a nondecreasing sequence.
19 is not a term because the periodic part of the continued fraction of sqrt(19) is (2, 1, 3, 1, 2, 8) which is not a nondecreasing sequence.
MATHEMATICA
Select[Range@147, !IntegerQ@Sqrt@#&&OrderedQ@Last@ContinuedFraction[Sqrt@#]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giorgos Kalogeropoulos, Sep 16 2021
STATUS
approved