login
A347784
Number of compositions (ordered partitions) of n into at most 3 powers of 2.
3
1, 1, 2, 3, 5, 5, 6, 6, 5, 5, 8, 6, 6, 6, 6, 0, 5, 5, 8, 6, 8, 6, 6, 0, 6, 6, 6, 0, 6, 0, 0, 0, 5, 5, 8, 6, 8, 6, 6, 0, 8, 6, 6, 0, 6, 0, 0, 0, 6, 6, 6, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 5, 5, 8, 6, 8, 6, 6, 0, 8, 6, 6, 0, 6, 0, 0, 0, 8, 6, 6, 0, 6, 0, 0, 0, 6
OFFSET
0,3
MATHEMATICA
Table[Length@Flatten[Permutations/@IntegerPartitions[n, 3, Select[Range@n, IntegerQ@Log2@#&]], 1], {n, 0, 100}] (* Giorgos Kalogeropoulos, Sep 13 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Sep 13 2021
STATUS
approved