A329318 List of co-Lyndon words on {1,2} sorted first by length and then lexicographically.
1, 2, 21, 211, 221, 2111, 2211, 2221, 21111, 21211, 22111, 22121, 22211, 22221, 211111, 212111, 221111, 221121, 221211, 222111, 222121, 222211, 222221, 2111111, 2112111, 2121111, 2121211, 2211111, 2211121, 2211211, 2212111, 2212121, 2212211, 2221111, 2221121
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
colynQ[q_]:=Array[Union[{RotateRight[q,#],q}]=={RotateRight[q,#],q}&,Length[q]-1,1,And]; Join@@Table[FromDigits/@Select[Tuples[{1,2},n],colynQ],{n,5}]
Comments