A102660 List of Lyndon words on {1,2,3} sorted first by length and then lexicographically.
1, 2, 3, 12, 13, 23, 112, 113, 122, 123, 132, 133, 223, 233, 1112, 1113, 1122, 1123, 1132, 1133, 1213, 1222, 1223, 1232, 1233, 1322, 1323, 1332, 1333, 2223, 2233, 2333, 11112, 11113, 11122, 11123, 11132, 11133, 11212, 11213, 11222, 11223, 11232
Offset: 1
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
- F. Bassino, J. Clement and C. Nicaud, The standard factorization of Lyndon words: an average point of view, Discrete Math. 290 (2005), 1-25.
- Reinhard Zumkeller, Haskell programs for some sequences concerning Lyndon words
- Wikipedia, Lyndon word
- Index entries for sequences related to Lyndon words
Programs
-
Haskell
cf. link.
-
PARI
is_A102660(n)=is_A239016(n)&&is_A239017(n) for(n=1, 5, p=vector(n, i, 10^(n-i))~; forvec(d=vector(n, i, [1, 3]), is_A102660(m=d*p)&&print1(m", "))) \\ M. F. Hasler, Mar 09 2014
Formula
Extensions
More terms from John W. Layman, Jan 24 2006
Definition improved by Reinhard Zumkeller, Mar 23 2012
Comments