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!)
A307431 Number T(n,k) of partitions of n into parts whose bitwise OR equals k; triangle T(n,k), n>=0, 0<=k<=n, read by rows. 4
1, 0, 1, 0, 1, 1, 0, 1, 0, 2, 0, 1, 1, 2, 1, 0, 1, 0, 4, 0, 2, 0, 1, 1, 5, 0, 2, 2, 0, 1, 0, 7, 0, 2, 0, 5, 0, 1, 1, 8, 1, 2, 2, 6, 1, 0, 1, 0, 11, 0, 4, 0, 12, 0, 2, 0, 1, 1, 12, 0, 5, 4, 15, 0, 2, 2, 0, 1, 0, 15, 0, 5, 0, 28, 0, 2, 0, 5, 0, 1, 1, 17, 1, 5, 5, 35, 0, 2, 2, 6, 2 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,10
LINKS
EXAMPLE
T(6,1) = 1: 111111.
T(6,2) = 1: 222.
T(6,3) = 5: 11112, 1122, 1113, 123, 33.
T(6,5) = 2: 114, 15.
T(6,6) = 2: 24, 6.
Triangle T(n,k) begins:
1;
0, 1;
0, 1, 1;
0, 1, 0, 2;
0, 1, 1, 2, 1;
0, 1, 0, 4, 0, 2;
0, 1, 1, 5, 0, 2, 2;
0, 1, 0, 7, 0, 2, 0, 5;
0, 1, 1, 8, 1, 2, 2, 6, 1;
0, 1, 0, 11, 0, 4, 0, 12, 0, 2;
0, 1, 1, 12, 0, 5, 4, 15, 0, 2, 2;
...
MAPLE
b:= proc(n, i, k) option remember; `if`(n=0, x^k, `if`(i<1, 0,
b(n, i-1, k)+b(n-i, min(n-i, i), Bits[Or](i, k))))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=0..n))(b(n$2, 0)):
seq(T(n), n=0..14);
CROSSREFS
Columns k=0-1 give: A000007, A057427.
Row sums give: A000041.
Main diagonal gives A050315.
Cf. A050314 (the same for XOR), A307432 (the same for AND).
Sequence in context: A155041 A334296 A227003 * A263848 A348157 A108455
KEYWORD
nonn,tabl,look,base
AUTHOR
Alois P. Heinz, Apr 08 2019
STATUS
approved

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 21 05:34 EDT 2024. Contains 372728 sequences. (Running on oeis4.)