Crate number_encoding

Source
Expand description

Number systems

This crate provides number systems for combinations, factorials, multinomials, and sequences of bits.

Modules§

combinadics
Combinatorial number system
factoradics
Factorial number system
multinadics
Multinomial number system
sequences
Bit sequence number system

Functions§

combination
Returns the number of k-combinations of a set of n elements.
factorial
Returns the factorial of n.
greatest_common_divisor
Returns the greatest common divisor of a and b.
multinomial
Returns the number of permutations of a multiset.