A353850 Number of integer compositions of n with all distinct run-sums.
1, 1, 2, 4, 5, 12, 24, 38, 52, 111, 218, 286, 520, 792, 1358, 2628, 4155, 5508, 9246, 13182, 23480, 45150, 54540, 94986, 146016, 213725, 301104, 478586, 851506, 1302234, 1775482, 2696942, 3746894, 6077784, 8194466, 12638334, 21763463, 28423976, 45309850, 62955524, 94345474
Offset: 0
Keywords
Examples
The a(0) = 1 through a(5) = 12 compositions: () (1) (2) (3) (4) (5) (11) (12) (13) (14) (21) (22) (23) (111) (31) (32) (1111) (41) (113) (122) (221) (311) (1112) (2111) (11111) For n=4, (211) is invalid because the two runs (2) and (11) have the same sum. - _Joseph Likar_, Aug 04 2023
Links
- Joseph Likar, Table of n, a(n) for n = 0..120
Crossrefs
For distinct parts instead of run-sums we have A032020.
For distinct multiplicities instead of run-sums we have A242882.
For runs instead of run-sums we have A351013.
These compositions are ranked by A353852.
A005811 counts runs in binary expansion.
A011782 counts compositions.
A175413 lists numbers whose binary expansion has all distinct runs.
A353847 gives composition run-sum transformation.
Programs
-
Mathematica
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], UnsameQ@@Total/@Split[#]&]],{n,0,15}]
Extensions
Terms a(21) and onwards from Joseph Likar, Aug 04 2023
Comments