[go: up one dir, main page]

login
A306903
Sum over all partitions of n of the bitwise XOR of the parts.
6
0, 1, 2, 7, 8, 19, 26, 61, 70, 126, 146, 270, 308, 519, 604, 1054, 1222, 1929, 2208, 3454, 3930, 5862, 6576, 9833, 11102, 16052, 17904, 25752, 28764, 40479, 44830, 62988, 70188, 97151, 107662, 148141, 164710, 223783, 247380, 334035, 370406, 495313, 547000
OFFSET
0,3
LINKS
FORMULA
a(n) is odd <=> n in { A067567 }.
MAPLE
b:= proc(n, i, r) option remember; `if`(i<1, 0, (t->
`if`(i<n, b(n-i, min(i, n-i), t), 0)+
`if`(i=n, t, 0)+b(n, i-1, r))(Bits[Xor](i, r)))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..45);
KEYWORD
nonn,base
AUTHOR
Alois P. Heinz, Mar 15 2019
STATUS
approved