partitions {mpoly}R Documentation

Enumerate the partitions of an integer

Description

Determine all unrestricted partitions of an integer. This function is equivalent to the function parts in the partitions package.

Usage

partitions(n)

Arguments

n

an integer

Value

a matrix whose rows are the n-tuples

Author(s)

Robin K. S. Hankin, from package partitions

Examples

partitions(5)
str(partitions(5))

[Package mpoly version 1.1.1 Index]