KBracelets
Words of length over a -letter alphabet up to rotation and reflection — bracelets over colours, a lazy indexed family.
SymPy
braceletsKBracelets(n, k)the bracelets of beads, each one of colours.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer<0..>, integer<0..>) -> indexed_collection<list<integer>> | combinatorics | always |
Details
- A lazy indexed collection; generalises BinaryBracelets from to any alphabet size, by the same Burnside sum over .
- Each element is the lexicographically-least word in its rotation-and-reflection orbit, over letters .
- unranks over these canonical words in ascending lexicographic order.
Enumeration
Examples
1 more kept as data, checked against the oraclesProperties #
About
| Examples | 5 |
|---|---|
| Crosswalk | SymPy |
See also: BinaryBracelets, Totient, Count, At