OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..100
MATHEMATICA
s[n_] := If[IntegerQ@ Sqrt[n], 0, Length @ DeleteDuplicates[ContinuedFraction[Sqrt[n]][[2]]]];
seq[kmax_] := Module[{smax = -1, s1, sq = {}}, Do[If[(s1 = s[k]) > smax, smax = s1; AppendTo[sq, k]], {k, 1, kmax}]; sq]; seq[10^5]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Jul 01 2024
STATUS
approved