CodeWord
The word that writes each part i as a one followed by i - 1 zeros.
FindStat
Mp00094via IntegerCompositionCodeWord(IntegerComposition)The word that writes each part i as a one followed by i - 1 zeros.Typed signatures
| Type | Package | Applies |
|---|---|---|
(composition) -> binary_word | combinatorics | always |
Details
- Takes a
IntegerCompositionand returns aBinaryWord— a typed map, so a wrong carrier is a type error rather than a wrong answer. - FindStat's Mp00094, Sage's to_code. An injection; its image is the words that start with a 1. Not CutWord, which marks the cuts and is one letter shorter than the size.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |