[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
login
A102660
List of Lyndon words on {1,2,3} sorted first by length and then lexicographically.
8
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,2
COMMENTS
A Lyndon word is primitive (not a power of another word) and is earlier in lexicographic order than any of its cyclic shifts.
FORMULA
Equals A239016 intersect A239017. - M. F. Hasler, Mar 09 2014
PROG
(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
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 03 2005
EXTENSIONS
More terms from John W. Layman, Jan 24 2006
Definition improved by Reinhard Zumkeller, Mar 23 2012
STATUS
approved