The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165277 Number of odd-indexed Fibonacci numbers in the Zeckendorf representation of n. 6

%I #12 Jan 20 2020 14:44:32

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

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

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

%N Number of odd-indexed Fibonacci numbers in the Zeckendorf representation of n.

%C We begin the indexing at 2; that is, 1=F(2), 2=F(3), 3=F(4), 5=F(5), ...

%C For a count of even-indexed Fibonacci summands, see A165276.

%H Amiram Eldar, <a href="/A165277/b165277.txt">Table of n, a(n) for n = 1..10000</a>

%e 6 = 5 + 1 = F(5) + F(2), so that a(6) = 1.

%t fibOddCount[n_] := Plus @@ (Reverse@IntegerDigits[n, 2])[[2 ;; -1 ;; 2]]; fibOddCount /@ Select[Range[1000], BitAnd[#, 2 #] == 0 &] (* _Amiram Eldar_, Jan 20 2020 *)

%Y Cf. A014417, A165276, A165278, A165279.

%K nonn

%O 1,7

%A _Clark Kimberling_, Sep 12 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 13:48 EDT 2024. Contains 372519 sequences. (Running on oeis4.)