public class PartitionsP
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.Vector<java.math.BigInteger> |
a |
The list of all partitions as a vector.
|
protected static java.math.BigInteger |
nMax |
The maximum integer covered by the high end of the list.
|
Constructor | Description |
---|---|
PartitionsP() |
Default constructor initializing a list of partitions up to 7.
|
Modifier and Type | Method | Description |
---|---|---|
java.math.BigInteger |
at(int i) |
return the number of partitions of i
|
static void |
main(java.lang.String[] args) |
Test program.
|
protected static java.util.Vector<java.math.BigInteger> a
protected static java.math.BigInteger nMax
public PartitionsP()
public java.math.BigInteger at(int i)
i
- the zero-based index into the list of partitionspublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception