110 people attended OEIS-50 (videos, suggestions); annual fundraising drive to start soon (donate); editors, please edit! (stack is over 300), your editing is more valuable than any donation.
a(n)>n iff n is in A055114. Note that there are very few composites in A055114 : 529,851...are the first.
Table of n, a(n) for n=1..76.
(PARI) a(n)=if(n<0, 0, s=1; while(abs(vecmax(contfrac(n/s))-2)>0, s++); s)
Sequence in context: A235998 A133850 A160902 * A182534 A165918 A114639
Adjacent sequences: A082405 A082406 A082407 * A082409 A082410 A082411
Benoit Cloitre, Apr 23 2003