OFFSET
1,3
COMMENTS
LINKS
John Metcalf, Table of n, a(n) for n = 1..10000
FORMULA
For k > 1, a(F(k)) = F(k-1) where F(k) denotes the k-th Fibonacci number.
Probably, lim_{n->oo} (1/n)*Sum_{k=1..n} a(k) = 1/phi = A094214.
PROG
(PARI) a(n)=if(n<0, 0, s=1; while(abs(vecmax(vector(n, i, length(contfrac(n/i))))-length(contfrac(n/s)))>0, s++); s)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 21 2003
STATUS
approved