Class HyperFactorial
- java.lang.Object
-
- de.tilman_neumann.jml.combinatorics.HyperFactorial
-
public class HyperFactorial extends Object
Hyperfactorials.- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description HyperFactorial()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigInteger
inverse(int n)
A000197 or what I call the "inverse hyperfactorial" is the product 1^n*2^(n-1)*..*(n-1)^2*n^1 = 1!*2!*3!*...(n-1)!*n!.static BigInteger
standard(int n)
A002109 or the standard "hyperfactorial" is the product {1^1*2^2*..n^n}.
-
-
-
Method Detail
-
standard
public static BigInteger standard(int n)
A002109 or the standard "hyperfactorial" is the product {1^1*2^2*..n^n}.- Parameters:
n
-- Returns:
- hyperfactorial(n)
-
inverse
public static BigInteger inverse(int n)
A000197 or what I call the "inverse hyperfactorial" is the product 1^n*2^(n-1)*..*(n-1)^2*n^1 = 1!*2!*3!*...(n-1)!*n!.- Parameters:
n
-- Returns:
- the "inverse hyperfactorial" of n aka 1!*2!*3!*...(n-1)!*n!
-
-