OFFSET
0,5
EXAMPLE
There are 6 such compositions for n = 14:
14 = 1 + 6 + 7 (1 + 110 + 111)
14 = 2 + 5 + 7 (10 + 101 + 111)
14 = 2 + 12 (10 + 1100)
14 = 4 + 3 + 7 (100 + 11 + 111)
14 = 4 + 10 (100 + 1010)
14 = 8 + 6 (1000 + 110)
Therefore a(14) = 6.
PROG
(PARI) a(n) = my(nb=0); forpart(v=n, if (vecsort(apply(hammingweight, Vec(v))) == [1..#v], nb++)); nb; \\ Michel Marcus, Nov 28 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Arnauld Chevallier, Nov 26 2023
STATUS
approved