OFFSET
1,1
COMMENTS
PROG
(PARI) a(n)=if(n<0, 0, s=1; while(abs(vecmax(contfrac(n/s))-2)>0, s++); s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 23 2003
STATUS
approved