Hyperfactorial Calculator

Sequences

Hyperfactorial H(5)86,400,000
digits in H(n)8
H(4) for comparison27,648
growth factor n^n = 5^53,125
How this was calculated
  1. The hyperfactorial H(n) is the product 1^1 x 2^2 x 3^3 x ... x n^n - each factor k raised to its own power, which makes it grow far faster than the ordinary factorial.
  2. Multiplying the powers 2^2, 3^3 and so on up to 5^5 = 3,125 gives H(5) = 86,400,000, a number with 8 digits.
  3. The growth factor from H(4) = 27,648 is exactly 5^5 - each step multiplies by n^n, not by n.
  4. Hyperfactorials appear in the Barnes G-function and in estimates for determinants and lattice counts; H(3) = 108 and H(4) = 27,648 are the classic hand-checkable cases.

The hyperfactorial of n is the product 1^1 x 2^2 x 3^3 x ... x n^n - like a factorial, but with every factor raised to its own power. The growth is violent: H(3) = 108, H(4) = 27,648, and by H(5) the value is already 86,400,000, an eight-digit number from a five-term product.

This hyperfactorial calculator computes H(n) exactly, with arbitrary-precision integer arithmetic, and reports the digit count and the growth factor n^n alongside the value. Its list mode gives the first n hyperfactorials: 1, 4, 108, 27,648, 86,400,000 and onward - each term dwarfing the ordinary factorial at the same index.

Hyperfactorials are not a curiosity only. They are the integer values of the Barnes G-function up to a shift, they appear in determinant formulas and lattice-point counts, and they mark the natural next rung on the ladder that runs factorial, superfactorial, hyperfactorial - each rung raising the stakes of the product.

Worked examples

H(5)

(Value at n · 5)

Hyperfactorial H(5)86,400,000
digits in H(n)8
H(4) for comparison27,648
growth factor n^n = 5^53,125

H(4)

(Value at n · 4)

Hyperfactorial H(4)27,648
digits in H(n)5
H(3) for comparison108
growth factor n^n = 4^4256

First 6 hyperfactorials

(First n values · 6)

First 6 hyperfactorials1, 4, 108, 27,648, 86,400,000, 4,031,078,400,000
last term4,031,078,400,000
digits in the last term13
ordinary factorial n! for comparison720

Factorials with exponents

The definition multiplies k^k instead of k. For n = 5 that is 1 x 4 x 27 x 256 x 3,125 = 86,400,000. Already the last factor dominates: 5^5 = 3,125 contributes more than the entire product of everything before it, a pattern that only intensifies as n grows.

The calculator builds the product exactly and reports the digit count with the value - for H(5), 8 digits. Watching the digit count is the practical way to feel the growth: where n! adds digits roughly linearly in n log n, the hyperfactorial's digit count grows like n^2 log n / 2, quadratically faster in shape.

  • H(5) = 1 x 4 x 27 x 256 x 3,125 = 86,400,000
  • H(3) = 108 and H(4) = 27,648
  • Exact big-integer arithmetic, digit count reported

Growth: a factor of n^n per step

Each step multiplies by n^n rather than n. The step from H(5) to H(6) multiplies by 6^6, taking the value to H(6) = 4,031,078,400,000 - thirteen digits. Compare the factorial's step at the same point, a mere multiplication by 6. The two sequences start within reach of each other and separate at a doubly dramatic rate.

The page shows the growth factor explicitly in value mode, because it is the real content of the definition: H(n) / H(n - 1) = n^n. Everything else - the digit counts, the comparison with n! - follows from that single ratio.

  • H(6) = 4,031,078,400,000
  • Step ratio is exactly n^n
  • The factorial's step ratio is only n

The Barnes G-function connection

The Barnes G-function is a higher analogue of the gamma function, and its values at integers are hyperfactorials in disguise: G(n + 2) equals the product of the first n factorials, and the hyperfactorial is the companion product of powers. This is why hyperfactorials surface in places that generalise the gamma function - multiple zeta values, determinants of operators, and asymptotic expansions.

For a calculator user the practical upshot is that H(n) is a well-studied sequence with known asymptotics involving the Glaisher-Kinkelin constant, the hyperfactorial analogue of the Stirling constant. The exact values this page prints are the ground truth those asymptotics approximate.

  • Integer values tied to the Barnes G-function
  • Asymptotics involve the Glaisher-Kinkelin constant
  • Exact values anchor the approximations

Hyperfactorial vs superfactorial

The superfactorial multiplies the factorials themselves: 1! x 2! x ... x n!. The hyperfactorial multiplies the powers k^k. For small n they are close - at n = 4, the superfactorial is 288 against the hyperfactorial's 27,648 - and the hyperfactorial pulls away permanently, because k^k outgrows k! factor by factor once k is moderately large.

Both sequences live on this site, and comparing their outputs at the same n is a clean way to calibrate how much an exponent in the factor matters. The hyperfactorial is the more aggressive construction, and its values leave the superfactorial's behind within a few terms.

  • Superfactorial: product of k!; hyperfactorial: product of k^k
  • At n = 4: 288 against 27,648
  • k^k outgrows k! factor by factor

Computing it exactly

There is no shortcut formula for H(n) in elementary functions, so the calculator simply multiplies - but it multiplies with arbitrary-precision integers, so H(15) and beyond are exact to the last digit rather than floating-point silhouettes. The digit count it reports is the true length of the exact value.

Exactness matters here because the sequence is often used to test asymptotic formulas: a value that is only approximately right cannot referee an approximation. The values up to n = 15 are computed on the spot, each one a check on the Barnes G asymptotics if you care to make it.

  • No closed form - honest multiplication
  • Arbitrary precision: every digit exact
  • Values serve as referees for asymptotic formulas

Where hyperfactorials appear

Beyond the G-function, products of powers arise in counting lattice points in simplices, in the volumes and determinants attached to Vandermonde-like matrices, and in the normalisations of certain random-matrix ensembles. In each case the k^k shape comes from a product over levels where the k-th level contributes k independent choices of size k.

That combinatorial reading is worth keeping: H(n) counts, roughly, the ways to fill a triangular array where row k has k cells each chosen from k symbols. It is a triangular number's worth of choices, compounded - which is exactly why the growth outruns the factorial's row-by-row count.

  • Lattice points, determinants, random matrices
  • Row k contributes k^k - a triangular array of choices
  • Growth outruns the factorial by design

Digit counts and the shape of growth

The digit counts tell the growth story compactly: H(4) has 5 digits, H(5) has 8, and H(6) jumps to 13. Each step adds roughly n log10(n) digits - the logarithm of the n^n factor - so the digit count grows quadratically, unlike the factorial's roughly linear-in-n log n profile. By the top of the calculator's range the values are long enough that the digit count is the only practical way to describe their size.

The page reports digits for both the value and, in list mode, the last term, because comparing digit counts across sequences - factorial, superfactorial, hyperfactorial - is the standard first chart in the literature on these products. Exact values first, magnitudes second, asymptotics third: the calculator supplies the first two.

  • Digits: H(4) 5, H(5) 8, H(6) 13
  • Each step adds about n log10(n) digits
  • Digit counts are the practical size language

A note on notation

The hyperfactorial is written H(n) here, following the sequence's common notation; in the Barnes G and K-function literature the same values appear through the K-function, with K(n + 1) = H(n). Readers cross-checking against those sources should shift the index by one before concluding the tables disagree - the classic off-by-one of this corner of mathematics.

Within this page no shift is needed: H(5) = 86,400,000 is the product 1^1 through 5^5 under any naming, and the calculator's displayed factor-by-factor build in its steps lets the definition be audited directly.

  • H(n) here; K(n + 1) in the G-function literature
  • Index shift explains apparent table disagreements
  • Definition displayed factor by factor

Using the calculator

Value mode answers 'what is H(n)?' with the exact integer, its digit count, the previous hyperfactorial and the growth factor n^n. List mode prints the opening run of the sequence - 1, 4, 108, 27,648, 86,400,000 - so ratios between consecutive terms can be read off directly.

A good first experiment: compare H(5) = 86,400,000 with 5! = 120, then with the superfactorial at 5. Three products built from the same five integers, three wildly different sizes - the exponent is doing all the work.

  • Value mode: exact value, digits, previous term, n^n
  • List mode: the opening sequence for ratio reading
  • Compare H(5), 5! and the superfactorial at 5

FAQs

What is the hyperfactorial of 5?

H(5) = 86,400,000 - the product 1^1 x 2^2 x 3^3 x 4^4 x 5^5.

How is the hyperfactorial defined?

H(n) = 1^1 x 2^2 x 3^3 x ... x n^n - each integer raised to its own power, all multiplied.

What is H(4)?

H(4) = 27,648.

How fast does the hyperfactorial grow?

Each step multiplies by n^n: H(6) = 4,031,078,400,000, up from H(5) = 86,400,000.

What are the first hyperfactorials?

1, 4, 108, 27,648, 86,400,000.

Where are hyperfactorials used?

In the Barnes G-function, determinant formulas and lattice-point counts - wherever a product of powers k^k arises.

Sources

Related calculators

Factorial Calculator
Exact factorials up to 170! computed with arbitrary-precision integers — no scientific-notation rounding — with the digit count and trailing zeros (Legendre's formula) explained.
Double Factorial Calculator
Double factorial n!! for even and odd n, with the full factor chain, the ordinary factorial for comparison and the opposite-parity companion value.
Superfactorial Calculator
The superfactorial of n - the product 1! x 2! x ... x n! in exact integer arithmetic, with its digit count.