OFFSET
0,5
EXAMPLE
The a(n) compositions for selected n (A..E = 10..14):
n=4: n=6: n=9: n=10: n=12: n=14:
-----------------------------------------------------------
(4) (6) (9) (A) (C) (E)
(22) (1122) (333) (2233) (2244) (2255)
(2211) (121122) (3322) (4422) (5522)
(221121) (131122) (151122) (171122)
(221131) (221124) (221126)
(221142) (221135)
(221151) (221153)
(241122) (221162)
(421122) (221171)
(261122)
(351122)
(531122)
(621122)
(122121122)
(221121221)
MATHEMATICA
yoyQ[y_]:=Length[y]<=1||MemberQ[Join@@Table[Take[y, {i, j}], {i, Length[y]}, {j, i, Length[y]}], Length/@Split[y]]&&yoyQ[Length/@Split[y]];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], yoyQ]], {n, 0, 15}]
CROSSREFS
Non-recursive non-consecutive version: counted by A353390, ranked by A353402, reverse A353403, partitions A325702.
A011782 counts compositions.
A114901 counts compositions with no runs of length 1.
A329739 counts compositions with all distinct run-lengths.
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, May 16 2022
STATUS
approved