Superfactorial Calculator
Factorials
- The superfactorial of n multiplies the first n factorials together: 1! x 2! x ... x 5!.
- Build it factor by factor; the running product ends at 34,560.
- The same value comes from the power form 1^n x 2^(n-1) x ... x n^1, a useful cross-check on the multiplication.
- Growth is far faster than a plain factorial: each new factor multiplies by a whole factorial, not by n, so the digit count explodes.
The superfactorial piles factorials on factorials: sf(n) = 1! x 2! x ... x n!, the product of the first n factorials. The growth is ferocious even by factorial standards - sf(5) is already 34,560, and sf(8) = 505,658,474,496,000 is a 15-digit number (the calculator's own audit trail counts its digits exactly).
This calculator evaluates the superfactorial exactly for your n and reports its size in digits, cross-checked against the Barnes G-function: sf(n) = G(n + 2), where G is the standard extension of the superfactorial to all inputs. The anchor values to verify by hand: sf(3) = 1! x 2! x 3! = 1 x 2 x 6 = 12, and sf(4) = 288.
It is worth being clear about what this page is not: the superfactorial is not the factorial of a factorial, and it is not the hyperfactorial (which raises each factor to its own power). The three growth monsters are easy to confuse, and the comparison section below separates them with numbers.
Worked examples
Superfactorial of 5
(5)
| superfactorial of 5 | 34,560 |
| n! on its own | 120 |
| number of digits | 5 |
| superfactorial of n - 1 | 288 |
Superfactorial of 7
(7)
| superfactorial of 7 | 125,411,328,000 |
| n! on its own | 5,040 |
| number of digits | 12 |
| superfactorial of n - 1 | 24,883,200 |
Superfactorial of 4
(4)
| superfactorial of 4 | 288 |
| n! on its own | 24 |
| number of digits | 3 |
| superfactorial of n - 1 | 12 |
A product of factorials
Build it incrementally. sf(1) = 1! = 1. sf(2) = 1 x 2! = 2. sf(3) = 2 x 3! = 12. sf(4) = 12 x 24 = 288. sf(5) = 288 x 120 = 34,560. Each step multiplies by the next factorial, so the exponent structure compounds: sf(n) can be rewritten as a product of primes and small integers with large powers - 2 appears in every factorial from 2! onwards, so sf(n) carries 2 to a large exponent, which is why these numbers are so divisible.
An equivalent form exposes the structure: sf(n) = product over k of k^(n + 1 - k). The integer k appears in the factorials k!, (k+1)!, ..., n! - that is, n + 1 - k times. Small factors dominate the exponent profile, and the largest factor n appears just once. The calculator's digit count and exact value let you see both faces: the tame definition and the wild size.
- sf(3) = 12, sf(4) = 288, sf(5) = 34,560
- sf(8) = 505,658,474,496,000 - 15 digits
- Equivalent form: product of k^(n + 1 - k) over k = 1..n
- sf(n) = G(n + 2) for the Barnes G-function
The Barnes G-function
The Barnes G-function is the superfactorial, continued. It satisfies G(z + 1) = Gamma(z) G(z) with G(1) = 1, mirroring how the gamma function continues the factorial one level down. At integer arguments the two notions coincide exactly: sf(n) = G(n + 2). The shift by 2 is the standard small print - G(n + 1) equals the product of factorials up to (n - 1)! - and the calculator states the relation in the form sf(n) = G(n + 2) so it can be checked against references directly.
Why continue the function at all? Because products of gamma values, determinants of operators and certain partition asymptotics land on G at non-integer arguments, and the integer superfactorials are the ladder by which the continuation is calibrated. For this page's purposes the identity serves as an audit: any reference table of G at integers must reproduce sf(5) = 34,560 at G(7).
- G(z + 1) = Gamma(z) G(z), G(1) = 1
- sf(n) = G(n + 2) exactly at integers
- Check value: G(7) = sf(5) = 34,560
Growth: digits and Kinkelin's constant
The size of sf(n) is governed by a precise asymptotic: ln sf(n) grows like (1/2) n^2 ln n, with a constant term involving Kinkelin's constant A = 1.2824271... (the Glaisher-Kinkelin constant). In digit terms, sf(8) has 15 digits and sf(10) has 27 - the digit count grows quadratically, roughly (n^2 / 2) log10 n, which is much faster than the factorial's near-linear digit growth.
Kinkelin's constant is the superfactorial's analogue of the sqrt(2 pi) in Stirling's formula: the precise constant that turns a good growth estimate into a sharp one. It also surfaces in random matrix theory and the Barnes G-function's own asymptotics - a reminder that this playful product sits on real analytic machinery.
Kinkelin's constant rewards a second look: A = 1.2824271... also appears in the Barnes G-function's values at half-integers and in random-matrix averages, and the superfactorial's asymptotic - with (1/2) n^2 ln n as the leading term of ln sf(n) - is the integer shadow of those analytic facts. The calculator's digit counts are the elementary end of the same theory: sf(8) at 15 digits and sf(10) at 27 are the asymptotic's opening steps.
| n | sf(n) | Digits |
|---|---|---|
| 3 | 12 | 2 |
| 4 | 288 | 3 |
| 5 | 34,560 | 5 |
| 6 | 24,883,200 | 8 |
| 8 | 505,658,474,496,000 | 15 |
| 10 | see calculator | 27 |
Not the hyperfactorial
Three products get confused constantly. The superfactorial multiplies factorials: sf(4) = 1! 2! 3! 4! = 288. The hyperfactorial multiplies powers: H(4) = 1^1 x 2^2 x 3^3 x 4^4 = 27,648. And the factorial of the factorial, (4!)! = 24!, is a different beast entirely, with 24 digits. At n = 4 the three give 288, 27,648 and a 24-digit number - close enough in spirit to be conflated, far enough apart in value to be separated by any calculator.
This page computes the first of the three. If a reference gives 27,648 at n = 4, you are reading about the hyperfactorial; the superfactorial's 288 is the product-of-factorials value, and the digit counts tabulated here follow from it.
The superfactorial also answers a child's question with a grown-up moral: how fast can a simple definition grow? Multiply the integers and you get factorials; multiply the factorials and the digit count turns quadratic; the definitions differ by one word and the growth by an order of magnitude in the exponent. It is the cleanest exhibit on this site of how iteration, not complication, manufactures enormity - sf(10) has 27 digits from a definition a child can state.
The superfactorial in prime exponents
Rewrite sf(n) through its prime factorization and a second pattern appears: the exponent of a prime p in sf(n) is the sum of the exponents of p in each factorial up to n!. The exponent of 2 grows fastest - it appears in every factorial from 2! onwards and with multiplicity - which is why superfactorials are divisible by enormous powers of 2. The stacking can be audited against the printed values: in sf(5), the exponent of 2 is 0 + 1 + 1 + 3 + 3 = 8 (its exponents in 1! through 5!), and indeed 34,560 = 2^8 x 3^3 x 5. Working such checks by hand is the fastest way to build intuition for how the exponents accumulate.
The stacking has a clean formula: the exponent of prime p in sf(n) equals the sum over k of the exponent of p in k!, and Legendre's formula evaluates each term. Nothing about the superfactorial is computationally hard - it is a short product - but its prime anatomy rewards a look, because the same stacking argument explains the digit growth: every new factorial multiplies in a fresh copy of all the small primes.
- Exponent of p in sf(n) = sum of its exponents in 1!, 2!, ..., n!
- sf(5) = 34,560 = 2^8 x 3^3 x 5 - checkable against the printed value
- Small primes stack fastest, driving the quadratic digit growth
Where superfactorials are used
Superfactorials appear where products of factorials naturally arise: in the Barnes G-function's special values, in determinants of matrices of gamma values, in the volumes of certain high-dimensional spheres computed through gamma products, and in asymptotic counting where a product over all sizes up to n is the natural object. They also serve as a benchmark of growth - a standard example of a sequence outrunning every exponential-of-polynomial of lower order.
For this site's purposes the superfactorial completes a family portrait: the factorial page multiplies 1..n, this page multiplies the factorials, and the primorial and compositorial pages multiply the primes and the composites. The four products together map the basic ways of accumulating the integers multiplicatively, and their digit counts at the same n - modest for primorial, large for factorial, enormous for superfactorial - rank the strategies by growth.
- Appears via the Barnes G-function in gamma-product determinants and asymptotics
- Growth benchmark: outruns the factorial decisively (sf(8) has 15 digits; 8! has 5)
- One of four sibling products: primorial, compositorial, factorial, superfactorial
FAQs
What is the superfactorial?
The product of the first n factorials: sf(n) = 1! x 2! x ... x n!. So sf(3) = 1 x 2 x 6 = 12 and sf(5) = 34,560.
What is sf(5)?
34,560 - that is 1! x 2! x 3! x 4! x 5! = 1 x 2 x 6 x 24 x 120. It also equals the Barnes G value G(7).
How does the superfactorial relate to the Barnes G-function?
Exactly: sf(n) = G(n + 2). The Barnes G-function continues the superfactorial to non-integer arguments the way the gamma function continues the factorial.
How many digits does sf(8) have?
15 digits: sf(8) = 505,658,474,496,000. Digit counts grow roughly quadratically - sf(10) already has 27 digits.
What is Kinkelin's constant?
A = 1.2824271..., the Glaisher-Kinkelin constant. It is the sharp constant in the asymptotic growth of the superfactorial, playing the role that sqrt(2 pi) plays in Stirling's formula for the factorial.
Is the superfactorial the same as the hyperfactorial?
No. The superfactorial multiplies factorials (sf(4) = 288); the hyperfactorial multiplies each integer by its own power (H(4) = 1^1 x 2^2 x 3^3 x 4^4 = 27,648).