Class HyperFactorial


  • public class HyperFactorial
    extends Object
    Hyperfactorials.
    Author:
    Tilman Neumann
    • Constructor Detail

      • HyperFactorial

        public HyperFactorial()
    • 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!