A374743 Number of integer compositions of n whose leaders of weakly decreasing runs are distinct.
1, 1, 2, 4, 8, 15, 29, 55, 105, 198, 371, 690, 1280, 2364, 4353, 7981, 14568, 26466, 47876, 86264, 154896, 277236, 494675, 879924, 1560275, 2757830, 4859010, 8534420, 14945107, 26096824, 45446624, 78939432, 136773519, 236401194, 407614349, 701147189, 1203194421
Offset: 0
Keywords
Examples
The composition (1,3,1,4,1,2,2,1) has maximal weakly decreasing subsequences ((1),(3,1),(4,1),(2,2,1)), with leaders (1,3,4,2), so is counted under a(15). The a(0) = 1 through a(5) = 15 compositions: () (1) (2) (3) (4) (5) (11) (12) (13) (14) (21) (22) (23) (111) (31) (32) (112) (41) (121) (113) (211) (122) (1111) (131) (221) (311) (1112) (1121) (1211) (2111) (11111)
Links
Crossrefs
Types of runs (instead of weakly decreasing):
Types of run-leaders (instead of distinct):
- For weakly increasing leaders we appear to have A188900.
- For identical leaders we have A374742.
- For strictly increasing leaders we have opposite A374634.
- For strictly decreasing leaders we have A374746.
- For weakly decreasing leaders we have A374747.
A011782 counts compositions.
A335456 counts patterns matched by compositions.
A374748 counts compositions by sum of leaders of weakly decreasing runs.
Programs
-
Mathematica
Table[Length[Select[Join@@Permutations /@ IntegerPartitions[n],UnsameQ@@First/@Split[#,GreaterEqual]&]],{n,0,15}]
Extensions
a(24)-a(36) from Alois P. Heinz, Jul 26 2024
Comments