OFFSET
0,3
COMMENTS
These compositions avoid the weak consecutive pattern (1,2,3), the strict version being A128761.
EXAMPLE
The a(1) = 1 through a(6) = 17 compositions:
(1) (2) (3) (4) (5) (6)
(1,1) (1,2) (1,3) (1,4) (1,5)
(2,1) (2,2) (2,3) (2,4)
(3,1) (3,2) (3,3)
(1,2,1) (4,1) (4,2)
(2,1,1) (1,3,1) (5,1)
(2,1,2) (1,3,2)
(2,2,1) (1,4,1)
(3,1,1) (2,1,3)
(1,2,1,1) (2,3,1)
(3,1,2)
(3,2,1)
(4,1,1)
(1,2,1,2)
(1,3,1,1)
(2,1,2,1)
(2,2,1,1)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !MatchQ[#, {___, x_, y_, z_, ___}/; x<=y<=z]&]], {n, 0, 15}]
CROSSREFS
The case of permutations is A049774.
The strict non-adjacent version is A102726.
The case of permutations of prime indices is A344652.
A001250 counts alternating permutations.
A005649 counts anti-run patterns.
A106356 counts compositions by number of maximal anti-runs.
A114901 counts compositions where each part is adjacent to an equal part.
A344604 counts wiggly compositions with twins.
A344605 counts wiggly patterns with twins.
A344606 counts wiggly permutations of prime factors with twins.
Counting compositions by patterns:
- A003242 avoiding (1,1) adjacent.
- A011782 no conditions.
- A106351 avoiding (1,1) adjacent by sum and length.
- A128695 avoiding (1,1,1) adjacent.
- A128761 avoiding (1,2,3).
- A232432 avoiding (1,1,1).
- A335456 all patterns.
- A335457 all patterns adjacent.
- A335514 matching (1,2,3).
- A344604 weakly avoiding (1,2,3) and (3,2,1) adjacent.
- A344614 avoiding (1,2,3) and (3,2,1) adjacent.
- A344615 weakly avoiding (1,2,3) adjacent.
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 27 2021
EXTENSIONS
More terms from Bert Dobbelaere, Jun 12 2021
STATUS
approved