Skip to content

FactorialNumerals ​

Factoradic: place kk has weight k!k! and digit at most kk. The digits of nn are the Lehmer code of the nn-th permutation in lexicographic order, so unranking a permutation and writing a number in this system are the same operation.

FactorialNumerals()the system, place kk weighted k!k!
Typed signatures
TypePackageApplies
() -> valuenumeralsalways

Domain: Numeral systems

Examples

Basic #

10=1⋅3!+2⋅2!+0⋅1!10 = 1\cdot 3! + 2\cdot 2! + 0\cdot 1!: the Lehmer code of the 10th permutation

live ↗
InIntegerDigits(10,FactorialNumerals)\mathrm{IntegerDigits}(10, \mathrm{FactorialNumerals})Out[1,2,0,0]\bigl\lbrack1, 2, 0, 0\bigr\rbrack
About
Examples1

See also: IntegerDigits, PrimorialNumerals