Factorial of 438
438! = 291465358436857445699990619809052867265667058392638441238329604026154747355237080816451970309983750337663191048914563034675050254717927784458749572977103982340410569761653435074373821687910354665927211506727769963410800918926590685286068376492670496286397087879722215412942659986997662686673441766406446672366736534295997891473983424697262517912371252721883375279701590819475700513365717949536474726056153589078210360155948794063067075770047303463559429535385015459613156925884058564632386299366982430894440624534347364322618902782487738575388622506948907810775855795812128948497735878828214214654885839768457331875526631317911734396712702631041269438963669618769825640343884874777489549183945852077263191073740496915347935663314015977298934736403243025542377241693123103842352540666402152595378107793232521225697460469709891227831468422580413020294298119385907200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
969 digits
Sumwise · Maintained by Theo Abbott (pen name) · automated checks · Data: exact arithmetic; unit definitions from NIST SP 811 · Updated · How the checks work
How it is calculated
438! = 438 × 437 × … × 2 × 1 = 2914653584368574456999906198090528672656…
Facts about 438!
| Digits | 969 |
|---|---|
| Trailing zeros | 107 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 438! ÷ 437! | 438 |
Nearby factorials
| 436! | 152275977992778411178328… (964 digits) |
| 437! | 665446023828441656849293… (966 digits) |
| 439! | 127953292353780418662295… (972 digits) |
| 440! | 562994486356633842114101… (974 digits) |
What are factorials used for?
Counting arrangements: 438! is the number of different orders in which 438 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 438!
There are 2.9146 × 10^968 different ways to arrange 438 different books on a shelf: 438 choices for the first place, 437 for the second, and so on down to one choice for the last. If you only fill the first three places, as with gold, silver and bronze among 438 runners, there are 438 × 437 × 436 = 83,453,016 possible podiums. If the order does not matter, divide by 3! = 6 to get 13,908,836 ways to choose a group of three. Choosing a pair from 438 people can be done in 95,703 ways.
In probability, if 438 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 2.9146 × 10^968. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 438!?
438! has 969 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 4059, a multiple of 9, as they are for every factorial from 6! on. Stirling's formula, √(2πn) × (n/e)^n, gives a close estimate without multiplying everything out, and gets more accurate as n grows.
Prime factors of 438!
Every prime up to 438 divides 438!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 438! that gives 2^432 × 3^216 × 5^107 × 7^71 × 11^42 × 13^35 × 17^26 × 19^24 × 23^19 × 29^15 × … (84 primes in all). The 107 trailing zeros come from pairing the 107 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 438 items: orders in which no item ends up in its original place, as in a Secret Santa where nobody draws their own name. The count is the whole number nearest to 438! ÷ e, so about 36.8% of all 2.9146 × 10^968 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 438! yourself
In Excel or Google Sheets, type =FACT(438). Spreadsheets keep only 15 significant digits, so from 18! on the result is rounded, and FACT stops at 170!, the largest factorial that fits in a standard floating-point number. In Python, math.factorial(438) returns the exact integer with all 969 digits, because Python integers have no size limit. The gamma function extends factorials to fractions: Γ(n + 1) = n!, so (1/2)! = √π ÷ 2 ≈ 0.8862.
Why is 0! equal to 1?
There is exactly one way to arrange nothing, and the rule n! = n × (n − 1)! only works for n = 1 if 0! = 1. Defining it this way keeps formulas for combinations and series correct at the edges.
How answers are calculated and checked: methodology.
Questions
What is 438 factorial?
438! is the product of every whole number from 1 to 438.
How many digits does 438! have?
969. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 438!?
107. Count the factors of 5 in the numbers 1 to 438: there are always more factors of 2, so every 5 makes one trailing zero.
Is 438! divisible by 439?
No. 439 is prime and bigger than every factor of 438!, so it cannot divide it (Wilson's theorem says 438! leaves a remainder of 438 when divided by 439).
What is the last non-zero digit of 438!?
2. Strip the 107 trailing zeros and look at the digit that is left at the end.
What is 439! in terms of 438!?
439! = 439 × 438!. Each factorial is the previous one multiplied by the next whole number.