[Information Index] [Generation Index] [COS homepage]

6-ary Lyndon words with given trace and subtrace.

A 6-ary Lyndon word is a string made from the characters 0, 1, 2, 3, 4, 5. It must be aperiodic (not equal to any of its non-trivial rotations) and be lexicographically least among its rotations.

Here we consider the set L(n;t,s) of length n lyndon words a1a2···an over the alphabet {0,1,2,3,4,5} that have trace t and subtrace s. The trace of a 6-ary lyndon word is the sum of its digits mod 6, i.e. t = a1+a2+ ··· +an mod 6. The subtrace is the sum of the products of all n(n-1)/2 pairs of digits taken mod 6, i.e. s = SUM( aiaj : 1 < i < j < n ).

(trace,subtrace)
n (0,0) (0,1) (0,2) (0,3) (0,4) (0,5) (1,0)
(5,0)
(1,1)
(5,1)
(1,2)
(5,2)
(1,3)
(5,3)
(1,4)
(5,4)
(1,5)
(5,5)
(2,0)
(4,0)
(2,1)
(4,1)
(2,2)
(4,2)
(2,3)
(4,3)
(2,4)
(4,4)
(2,5)
(4,5)
(3,0) (3,1) (3,2) (3,3) (3,4) (3,5)
1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
2 0 0 1 0 0 1 2 0 0 0 1 0 1 0 0 1 0 0 1 0 2 0 0 0
3 0 0 2 3 0 6 3 1 3 1 3 1 1 3 1 3 1 3 3 0 6 0 0 2
4 4 8 6 13 2 18 9 6 12 9 6 12 4 8 6 13 2 18 9 6 12 9 6 12
5 25 60 36 42 36 60 36 42 36 60 25 60 36 42 36 60 25 60 25 60 36 42 36 60
6 165 236 240 165 236 240 162 270 162 270 162 270 214 214 214 214 214 214 126 300 180 207 180 300
7 1157 1008 1296 900 1296 1008 900 1296 1008 1157 1008 1296 1157 1008 1296 900 1296 1008 900 1296 1008 1157 1008 1296
8 6552 5280 6312 5094 6792 4908 5616 5832 6048 5616 5832 6048 6312 5094 6792 4908 6552 5280 5832 6048 5616 5832 6048 5616
9 33045 30240 31824 29151 34272 28080 33048 29160 33048 29160 33048 29160 33048 29160 33048 29160 33048 29160 33045 30240 31824 29151 34272 28080
10 167928 169987 165840 167928 169987 165840 178459 159408 176256 157464 180662 155520 167928 169987 165840 167928 169987 165840 178459 159408 176256 157464 180662 155520

Examples:

Further Notes:


[Information Index] [Generation Index] [COS homepage]

Questions?? Email The wizard of COS.
(Please note that the suffix XXXX must be removed from the preceeding email address.)
It was last updated Wednesday, 10-May-2006 10:32:13 PDT.
There have been 1012 visitors to this page since May 16, 2000 .
©Frank Ruskey, 1995-2003.