OFFSET
1,3
COMMENTS
a(n) >= n iff n is 1 or in A055114. Note that there are very few composites in A055114: 529, 851, ... are the first.
n/3 < a(n) <= n. - David A. Corneth, May 14 2025
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[n_] := Module[{k = 1}, While[Max[ContinuedFraction[n/k]] > 2, k++]; k]; Array[a, 100] (* Amiram Eldar, May 14 2025 *)
PROG
(PARI) a(n)=if(n<0, 0, s=1; while(vecmax(contfrac(n/s)) > 2, s++); s) \\ corrected by Amiram Eldar, May 14 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 23 2003
EXTENSIONS
a(1)-a(2) inserted and data corrected by Amiram Eldar, May 14 2025
STATUS
approved
