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!)
A306923 Sum over all partitions of n into distinct parts of the bitwise AND of the parts. 4

%I #13 Mar 19 2019 04:33:17

%S 0,1,2,3,5,7,7,7,12,18,18,22,23,25,19,26,37,49,55,64,67,78,80,93,101,

%T 110,106,122,114,129,136,158,197,237,256,287,311,337,367,403,424,453,

%U 492,525,571,638,684,754,809,853,896,955,995,1075,1149,1226,1295,1412

%N Sum over all partitions of n into distinct parts of the bitwise AND of the parts.

%H Alois P. Heinz, <a href="/A306923/b306923.txt">Table of n, a(n) for n = 0..1000</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Bitwise operation">Bitwise operation</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Commutative_property">Commutative property</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Identity_element">Identity element</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Partition_(number_theory)">Partition (number theory)</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Truth_table">Truth table</a>

%p b:= proc(n, i, r) option remember; `if`(i*(i+1)/2<n or

%p n=0, 0, (t-> `if`(i<n, b(n-i, min(i-1, n-i), t), 0)

%p +`if`(i=n, t, 0)+b(n, i-1, r))(Bits[And](i, r)))

%p end:

%p a:= n-> b(n$2, 2^ilog2(2*n)-1):

%p seq(a(n), n=0..57);

%Y Cf. A000009, A066189, A306901, A306924, A306925.

%K nonn,base

%O 0,3

%A _Alois P. Heinz_, Mar 16 2019

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 April 25 16:23 EDT 2024. Contains 371989 sequences. (Running on oeis4.)