login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A220115 a(n) = A000120(n) - A007895(n), the number of 1's in binary expansion of n minus the number of terms in Zeckendorf representation of n. 4

%I

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

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

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

%N a(n) = A000120(n) - A007895(n), the number of 1's in binary expansion of n minus the number of terms in Zeckendorf representation of n.

%H Amiram Eldar, <a href="/A220115/b220115.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = A000120(n) - A007895(n).

%e a(4) = A000120(4) - A007895(4) = 1 - 2 = -1.

%t zeck = DigitCount[Select[Range[0, 500], BitAnd[#, 2*#] == 0&], 2, 1]; DigitCount[Range[0, Length[zeck]-1], 2, 1] - zeck (* _Jean-Fran├žois Alcover_, Jan 25 2018 *)

%Y Cf. A000120, A007895.

%K base,sign,easy

%O 0,14

%A _Alex Ratushnyak_, Dec 05 2012

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 23 14:44 EDT 2021. Contains 346259 sequences. (Running on oeis4.)