A356771 a(n) is the sum of the Fibonacci numbers in common in the Zeckendorf and dual Zeckendorf representations of n.
0, 1, 2, 0, 4, 0, 1, 7, 0, 1, 2, 3, 12, 0, 1, 2, 0, 4, 5, 6, 20, 0, 1, 2, 3, 4, 0, 1, 7, 8, 9, 10, 11, 33, 0, 1, 2, 0, 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 13, 17, 18, 19, 54, 0, 1, 2, 3, 4, 0, 1, 7, 8, 9, 10, 11, 12, 0, 1, 2, 0, 4, 5, 6, 20, 21, 22, 23, 24
Offset: 0
Examples
For n = 28: - using F(k) = A000045(k), - the Zeckendorf representation of 28 is F(8) + F(5) + F(3), - the dual Zeckendorf representation of 28 is F(7) + F(6) + F(5) + F(3), - F(5) and F(3) appear in both representations, - so a(28) = F(5) + F(3) = 7.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..10946
- Rémy Sigrist, PARI program
- Index entries for sequences related to Zeckendorf expansion of n
Programs
-
PARI
\\ See Links section.
Comments