A347787 Number of compositions (ordered partitions) of n into at most 6 powers of 2.
1, 1, 2, 3, 6, 10, 18, 30, 48, 68, 94, 118, 140, 168, 202, 224, 258, 292, 302, 302, 336, 352, 370, 424, 470, 472, 490, 504, 532, 544, 584, 600, 618, 532, 526, 542, 544, 536, 674, 664, 666, 656, 754, 704, 820, 824, 904, 840, 830, 712, 794, 744, 820, 824, 984
Offset: 0
Keywords
Programs
-
Mathematica
Table[Length@Flatten[Permutations/@IntegerPartitions[n,6,Select[Range@n,IntegerQ@Log2@#&]],1],{n,0,54}] (* Giorgos Kalogeropoulos, Sep 13 2021 *)