OFFSET
0,4
FORMULA
a(n) = 2^(n-1) - A007862(n) for n > 0.
EXAMPLE
The composition c = (1,2,3) has 0-prepended first differences (1,1,1), which are all equal, so c is not counted under a(6).
The a(0) = 0 through a(5) = 15 compositions:
. . (1,1) (2,1) (1,3) (1,4)
(1,1,1) (2,2) (2,3)
(3,1) (3,2)
(1,1,2) (4,1)
(1,2,1) (1,1,3)
(2,1,1) (1,2,2)
(1,1,1,1) (1,3,1)
(2,1,2)
(2,2,1)
(3,1,1)
(1,1,1,2)
(1,1,2,1)
(1,2,1,1)
(2,1,1,1)
(1,1,1,1,1)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !SameQ@@Differences[Prepend[#, 0]]&]], {n, 0, 15}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Oct 16 2025
STATUS
approved
