KLyndonWords
The Lyndon words of length over a -letter alphabet: aperiodic necklaces, strictly less than every nontrivial rotation.
SageMath
LyndonWords(n, k)KLyndonWords(n, k)the Lyndon words of length over a -letter alphabet: aperiodic necklaces, strictly less than every nontrivial rotationTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..>, integer<0..>) -> indexed_collection<list<integer>> | combinatorics | always |
Details
- Count is ; specializes to LyndonWords at .
Enumeration
Examples
1 more kept as data, checked against the oraclesAbout
| Examples | 3 |
|---|---|
| Crosswalk | SageMath |
See also: LyndonWords, KNecklaces