OFFSET
1,2
PROG
(PARI) a(n)=sum(s=1, n, if(length(contfrac(n/s))-vecmax(vector(n, i, length(contfrac(n/i)))), 0, 1))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jan 01 2004
STATUS
approved