Factorial of 326
326! = 24251928090597589092577224511606431024117329911644072578546723180519444791330286455987045448318277754439848599976470499626806669620123364818315858927104556576857063752616931465074515931015240586625020418679032824211539075395084006038629082569722569355636540612788463238006247759620858662833028054118107240334504735961963373838803636165453676648618289797581710892558213464673986869976799051115469019457596720459736669154698357738067488365765849809838047080856692641867436041326049581250438573313900098976771026844048090478018513252225658206178284051486243145024386152611390618962838113211179632636723200000000000000000000000000000000000000000000000000000000000000000000000000000000
680 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
326! = 326 × 325 × … × 2 × 1 = 2425192809059758909257722451160643102411…
Facts about 326!
| Digits | 680 |
|---|---|
| Trailing zeros | 80 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 326! ÷ 325! | 326 |
Nearby factorials
| 324! | 228899746017910232114933… (675 digits) |
| 325! | 743924174558208254373534… (677 digits) |
| 327! | 793038048562541163327275… (682 digits) |
| 328! | 260116479928513501571346… (685 digits) |
What are factorials used for?
Counting arrangements: 326! is the number of different orders in which 326 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 326!
There are 2.4251 × 10^679 different ways to arrange 326 different books on a shelf: 326 choices for the first place, 325 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 326 runners, there are 326 × 325 × 324 = 34,327,800 possible podiums. If the order does not matter, divide by 3! = 6 to get 5,721,300 ways to choose a group of three. Choosing a pair from 326 people can be done in 52,975 ways.
In probability, if 326 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 2.4251 × 10^679. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 326!?
326! has 680 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 2727, 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 326!
Every prime up to 326 divides 326!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 326! that gives 2^322 × 3^161 × 5^80 × 7^52 × 11^31 × 13^26 × 17^20 × 19^17 × 23^14 × 29^11 × … (66 primes in all). The 80 trailing zeros come from pairing the 80 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 326 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 326! ÷ e, so about 36.8% of all 2.4251 × 10^679 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 326! yourself
In Excel or Google Sheets, type =FACT(326). 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(326) returns the exact integer with all 680 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 326 factorial?
326! is the product of every whole number from 1 to 326.
How many digits does 326! have?
680. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 326!?
80. Count the factors of 5 in the numbers 1 to 326: there are always more factors of 2, so every 5 makes one trailing zero.
Is 326! divisible by 327?
Yes. 327 is not prime, so its factors already appear among the numbers 1 to 326.
What is the last non-zero digit of 326!?
2. Strip the 80 trailing zeros and look at the digit that is left at the end.
What is 327! in terms of 326!?
327! = 327 × 326!. Each factorial is the previous one multiplied by the next whole number.