login
A347786
Number of compositions (ordered partitions) of n into at most 5 powers of 2.
3
1, 1, 2, 3, 6, 10, 17, 24, 33, 42, 49, 52, 64, 72, 76, 84, 93, 82, 81, 92, 96, 100, 124, 124, 124, 112, 124, 124, 136, 124, 144, 120, 93, 82, 121, 92, 128, 140, 164, 124, 156, 140, 172, 164, 184, 164, 184, 120, 124, 112, 164, 124, 184, 164, 184, 120, 136, 124, 184, 120, 144
OFFSET
0,3
MATHEMATICA
Table[Length@Flatten[Permutations/@IntegerPartitions[n, 5, Select[Range@n, IntegerQ@Log2@#&]], 1], {n, 0, 60}] (* Giorgos Kalogeropoulos, Sep 13 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Sep 13 2021
STATUS
approved