KNecklaces
The words of length over a -letter alphabet up to rotation, represented by the lexicographically-least word in each orbit.
SageMath
Necklaces(content)SymPynecklacesKNecklaces(n, k)the words of length over a -letter alphabet up to rotation, represented by the lexicographically-least word in each orbitTyped signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..>, integer<0..>) -> indexed_collection<list<integer>> | combinatorics | always |
Details
- Count is ; specializes to BinaryNecklaces at .
Enumeration
Examples
1 more kept as data, checked against the oracles See also: BinaryNecklaces, KLyndonWords