login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A107017
Second largest term in Zeckendorf representation of n, a(n)=0 if n itself is a Fibonacci number.
2
0, 0, 0, 1, 0, 1, 2, 0, 1, 2, 3, 3, 0, 1, 2, 3, 3, 5, 5, 5, 0, 1, 2, 3, 3, 5, 5, 5, 8, 8, 8, 8, 8, 0, 1, 2, 3, 3, 5, 5, 5, 8, 8, 8, 8, 8, 13, 13, 13, 13, 13, 13, 13, 13, 0, 1, 2, 3, 3, 5, 5, 5, 8, 8, 8, 8, 8, 13, 13, 13, 13, 13, 13, 13, 13, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 0, 1, 2
OFFSET
1,7
COMMENTS
a(A000045(n)) = 0;
a(A000045(n) + k) = A087172(k) with 0 < k < A000045(n-1).
LINKS
Eric Weisstein's World of Mathematics, Zeckendorf Representation
Eric Weisstein's World of Mathematics, Fibonacci Number
EXAMPLE
n = 20 = 13+5+2: a(20) = 5.
CROSSREFS
Cf. A007895.
Sequence in context: A284265 A119464 A214568 * A201076 A201079 A318601
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 09 2005
STATUS
approved