Class HyperFactorial

java.lang.Object
de.tilman_neumann.jml.combinatorics.HyperFactorial

public class HyperFactorial
extends java.lang.Object
Hyperfactorials.
  • Constructor Summary

    Constructors
    Constructor Description
    HyperFactorial()  
  • Method Summary

    Modifier and Type Method Description
    static java.math.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 java.math.BigInteger standard​(int n)
    A002109 or the standard "hyperfactorial" is the product {1^1*2^2*..n^n}.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HyperFactorial

      public HyperFactorial()
  • Method Details

    • standard

      public static java.math.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 java.math.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!