A347784 Number of compositions (ordered partitions) of n into at most 3 powers of 2.
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
Keywords
Programs
-
Mathematica
Table[Length@Flatten[Permutations/@IntegerPartitions[n,3,Select[Range@n,IntegerQ@Log2@#&]],1],{n,0,100}] (* Giorgos Kalogeropoulos, Sep 13 2021 *)
Comments