Skip to content

OddPartsWord ​

The binary word marking which parts are odd, the parts taken largest first.

OddPartsWord(IntegerPartition)The binary word marking which parts are odd, the parts taken largest first.
Typed signatures
TypePackageApplies
(integer_partition) -> binary_wordcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a IntegerPartition and returns a BinaryWord — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00317. Lossy: only the parts' parity is kept.

Examples

Basic #

the partition 4+2+14 + 2 + 1

live ↗
InOddPartsWord(IntegerPartition⁡([4,2,1]))\mathrm{OddPartsWord}({\operatorname{IntegerPartition}}([4, 2, 1]))OutBinaryWord⁡([0,0,1]){\operatorname{BinaryWord}}([0, 0, 1])
About
Examples1
CrosswalkFindStat