Vocabulary

math.combinatorics.private

Inputs

Outputs

Word description

Converts a positive integer n to factoradic form. The factoradic of an integer is its representation based on a mixed radix numerical system that corresponds to the values of n factorial.

Examples

Definition

math.combinatorics.private

Inputs

n | an integer |

Outputs

factoradic | a sequence |

Word description

Converts a positive integer n to factoradic form. The factoradic of an integer is its representation based on a mixed radix numerical system that corresponds to the values of n factorial.

Examples

USING: math.combinatorics.private prettyprint ;
859 factoradic .

{ 1 1 0 3 0 1 0 }

{ 1 1 0 3 0 1 0 }

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.100 x86.64 (2265, heads/master-aa51b2c23b, May 16 2024 13:09:59)