A329141 Number of Lyndon compositions of n that are not weakly increasing.
0, 0, 0, 0, 0, 1, 4, 11, 28, 60, 131, 263, 530, 1029, 2009, 3853, 7414, 14152, 27105, 51755, 99069, 189558, 363468, 697302, 1340220, 2578362, 4968001, 9582682, 18508226, 35784670, 69266825, 134207336, 260290846, 505274108, 981691926
Offset: 1
Keywords
Examples
The a(6) = 1 through a(8) = 11 compositions: (132) (142) (143) (1132) (152) (1213) (1142) (11212) (1214) (1232) (1322) (11132) (11213) (11312) (12122) (111212)
Crossrefs
Programs
-
Mathematica
neckQ[q_]:=Array[OrderedQ[{q,RotateRight[q,#]}]&,Length[q]-1,1,And]; aperQ[q_]:=Array[RotateRight[q,#1]&,Length[q],1,UnsameQ]; Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],!OrderedQ[#]&&neckQ[#]&&aperQ[#]&]],{n,10}]
Comments