login
Number of even terms in Zeckendorf representation of n.
8

%I #6 Mar 10 2013 16:06:05

%S 0,1,0,0,0,0,1,1,1,2,1,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,1,1,2,1,1,1,

%T 1,2,1,1,1,1,2,2,2,3,2,2,1,1,2,1,1,1,1,2,0,0,1,0,0,0,0,1,1,1,2,1,1,0,

%U 0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,1,1,2,1,1,0,0,1,0,0,0,0,1,1,1,2,1,1,0,0,1,0

%N Number of even terms in Zeckendorf representation of n.

%C a(n) = A007895(n) - A107016(n).

%C a(A107228(n)) = 0. - _Reinhard Zumkeller_, May 15 2005

%H Reinhard Zumkeller, <a href="/A107015/b107015.txt">Table of n, a(n) for n = 1..10000</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/ZeckendorfRepresentation.html">Zeckendorf Representation</a>

%e n = 77 = 55+21+1 -> a(77) = #{} = 0;

%e n = 88 = 55+21+8+3+1 -> a(88) = #{8} = 1;

%e n = 99 = 89+8+2 -> a(99) = #{2, 8} = 2.

%o (Haskell)

%o a107015 = length . filter even . a035516_row

%o -- _Reinhard Zumkeller_, Mar 10 2013

%Y Cf. A000045.

%Y Cf. A107224, A107225, A107226.

%Y Cf. A035516.

%K nonn

%O 1,10

%A _Reinhard Zumkeller_, May 09 2005