Exponential Factorial Calculator

Number Theory

Exponential factorial EF(n)262,144
Tower height4
Digits6
How this was calculated
  1. Build the power tower from the top: 2, then 3^2 = 9.
  2. Next level: 4^9 = 262,144.
  3. Each level raises the next integer to the whole tower below it, so growth is tetration-fast.
  4. EF(4) = 262,144.

The factorial multiplies a descending run of numbers. The exponential factorial exponentiates them instead: EF(n) is the power tower n^((n-1)^(...^(2^1))), evaluated from the top down. The growth is violent even by the standards of fast-growing functions: EF(1) = 1, EF(2) = 2, EF(3) = 9, EF(4) = 262,144 - and EF(5) = 5^262,144 is a number with 183,231 digits, far too large to print, so this calculator reports its digit count instead.

Right-associativity is the whole definition: the tower is built from the top. 4^(3^(2^1)) means 4^(3^2) = 4^9 = 262,144. Read the other way - ((4^3)^2)^1 - you would get a mere 4,096, which is not the function. Every source on exponential factorials uses the top-down reading, and the calculator's steps build the tower level by level so the order is unmistakable.

Enter n from 1 to 5. Up to 4 you get the exact value; at 5 you get the digit count, computed as floor(EF(4) x log10(5)) + 1 = floor(262,144 x 0.6990) + 1 = 183,231 - the standard trick for sizing a power without computing it.

Worked examples

EF(3)

(3)

Exponential factorial EF(n)9
Tower height3
Digits1

EF(4)

(4)

Exponential factorial EF(n)262,144
Tower height4
Digits6

EF(5) - reported as a digit count

(5)

Exponential factorial EF(n)183,231 digits
EF(4) (the exponent)262,144
Leading form5^262,144

Building the tower

Level by level for EF(4): the innermost level is just 2. The next level raises 3 to it: 3^2 = 9. The next raises 4 to that: 4^9 = 262,144. Three operations, and the value has already outrun most numbers you will meet this year. EF(5) adds one more level - 5 raised to 262,144 - and leaves the printable universe behind.

Notice the asymmetry of towers: the top levels matter least and the bottom level matters most. Changing the top of the tower (the 2) barely moves the result; changing the base (the final exponentiation) changes its number of digits by orders of magnitude. This is why digit counts, not values, are the natural currency from n = 5 on.

Counting digits without computing

The number of digits of a positive integer x is floor(log10(x)) + 1. For EF(5) = 5^262,144, log10 of it is 262,144 x log10(5) = 262,144 x 0.6990 ≈ 183,230.4, so the digit count is 183,231. The calculator performs this with enough precision that the floor is safe - the fractional part .4 is comfortably far from an integer boundary.

The same trick scales: the digit count of EF(6) would be EF(5) x log10(6), a number with 183,231 digits itself - meaning EF(6)'s digit count cannot even be written as an ordinary integer on this page, only described. Tetration outruns notation itself very quickly, and n = 5 is about where a honest calculator should stop.

Tetration and the fast-growing zoo

Repeated exponentiation is called tetration, and EF(n) is essentially tetration with a staircase of bases. In the fast-growing hierarchy it sits far above factorials (which are mere products) and above simple exponentials, in the company of the Ackermann function (which this site also computes) and Graham-scale constructions - though far below those monsters in absolute terms.

The comparison with factorials is instructive: 100! has 158 digits; EF(5), built from just five small numbers, has 183,231. Exponentiation's leverage over multiplication is total, and stacking it is leverage on leverage.

Why right-associative is the convention

Exponentiation is not associative: (a^b)^c = a^(b x c), a completely different (and much smaller) animal from a^(b^c). A tower written without brackets needs a convention, and mathematics settled on reading from the top - right-associative - partly because the left-associative reading collapses into an ordinary power and is therefore uninteresting.

Software note: many programming languages' ** or ^ operators are left-associative (or, in Python's case, ** is right-associative, matching the mathematical convention). Anyone implementing EF should check their language's rule before trusting the first result - the difference between 262,144 and 4,096 at n = 4 is the tell.

The sequence and its neighbours

1, 2, 9, 262,144, then the digit-count regime: the sequence is OEIS A049384, which lists values and digit counts as far as they are known. Neighbouring constructions include the exponential primorial, the 'power tower' with constant base (n^^k), and the superfactorial family on this site, which multiplies n^n-style terms instead of stacking them.

Each of these functions answers a slightly different 'what if factorials were stronger' question, and comparing their digit counts at small arguments is a compact education in how growth rates separate.

Using the calculator well

The input stops at 5 by design: EF(4) is the last value printable in full, and EF(5)'s digit count is the last size description that is itself a small number. Beyond that, the honest outputs would be towers of logarithms, which belong to a different kind of page.

Check the tower steps against a hand computation for n = 3 and n = 4 - they are short enough to verify completely, and they pin down the associativity convention better than any definition paragraph can.

Where the exponential factorial appears

The sequence surfaces wherever iterated exponentiation is used as a growth benchmark: in the analysis of extremely fast-growing functions in logic and computability, where towers calibrate hierarchies of functions (the Grzegorczyk and Ackermann hierarchies use kindred constructions), and in combinatorics problems that need a concrete example of a function outgrowing every fixed-height power tower of smaller height.

It also appears in recreational form in large-number writing, where EF(5)'s 183,231 digits make a vivid exhibit: a number you can define in five symbols, whose predecessor in the sequence has 9 digits, and which no physical medium could print in full more than a few thousand times over. The calculator's digit-count mode exists precisely because the sequence escapes direct representation so quickly.

Computing with towers safely

Software that evaluates power towers learns two lessons fast: evaluate top-down (the associativity is not a convention you can relax), and switch to logarithms before the values explode - the digit count of a tower a^(b^c) is governed by b^c x log10(a), which stays computable long after the tower itself does not. The calculator applies both lessons: exact integer towers where they fit, logarithmic digit counts where they do not.

A subtler lesson is overflow discipline in the intermediate steps: 5^262144 has 183,231 digits, but the exponent 262,144 itself is small - the tower's danger is concentrated entirely in the final exponentiation. Algorithms for tetration-like quantities are built around that asymmetry, keeping exponents in exact arithmetic and mantissas in floating point.

FAQs

What is the exponential factorial of 4?

262,144 - the tower 4^(3^(2^1)) = 4^9.

How many digits does EF(5) have?

183,231 digits.

Why is EF(5) not printed in full?

At 183,231 digits it would fill a book; the calculator reports its digit count, floor(262,144 x log10(5)) + 1.

What is EF(3)?

9 - the tower 3^(2^1) = 3^2.

Is the exponential factorial right-associative?

Yes - the tower is evaluated from the top down: n^((n-1)^(...)). Read the other way, EF(4) would be only 4,096.

What is this growth called?

Tetration - iterated exponentiation - the operation level above exponentiation in the arithmetic hierarchy.

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.