OFFSET
1,2
COMMENTS
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10038
EXAMPLE
a(4) = 5 because Fibonacci(3) + Fibonacci(6) + Fibonacci(8) + Fibonacci(11) = 2 + 8 + 21 + 89 = 120 = 5!.
PROG
(PARI) a007895(n) = if(n<4, n>0, my(k=2, s, t); while(fibonacci(k++)<=n, ); while(k && n, t=fibonacci(k); if(t<=n, n-=t; s++); k--); s);
a(n) = {my(k = 0); while(a007895(k!) < n, k++); k; }
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Sep 06 2016
STATUS
approved