Factorial of 405
405! = 680653430795508222449215242344688836073772491351993243108104021529172862296618381671146763288197909957987968655945984203282734249489713804927338956555174337630247550281760920826142162578635607580071998286010058821506749545567724090026130884819510677024442778521339972820054862416684684727562940219165453539811395785181379143617266753639486247164299169997093333186300366570950105712514667409176782891454358338435635561336438008820107692077791906804482678565592846760727615700936666392463771968231848050393624243116362681216952269743662286334246519620571045875191829388523307795334877258281501232741715196988134164879819386274040667891134790080117596714717431878335432959042050183867570825629458143442813382995883283677184758453052929044905714920488418950338331979495316873916721397760000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
882 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
405! = 405 × 404 × … × 2 × 1 = 6806534307955082224492152423446888360737…
Facts about 405!
| Digits | 882 |
|---|---|
| Trailing zeros | 100 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 405! ÷ 404! | 405 |
Nearby factorials
| 403! | 415996474022435046112465… (877 digits) |
| 404! | 168062575505063758629435… (880 digits) |
| 406! | 276345292902976338314381… (885 digits) |
| 407! | 112472534211511369693953… (888 digits) |
What are factorials used for?
Counting arrangements: 405! is the number of different orders in which 405 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 405!
There are 6.8065 × 10^881 different ways to arrange 405 different books on a shelf: 405 choices for the first place, 404 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 405 runners, there are 405 × 404 × 403 = 65,938,860 possible podiums. If the order does not matter, divide by 3! = 6 to get 10,989,810 ways to choose a group of three. Choosing a pair from 405 people can be done in 81,810 ways.
In probability, if 405 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 6.8065 × 10^881. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 405!?
405! has 882 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 3600, 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 405!
Every prime up to 405 divides 405!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 405! that gives 2^400 × 3^201 × 5^100 × 7^66 × 11^39 × 13^33 × 17^24 × 19^22 × 23^17 × 29^13 × … (79 primes in all). The 100 trailing zeros come from pairing the 100 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 405 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 405! ÷ e, so about 36.8% of all 6.8065 × 10^881 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 405! yourself
In Excel or Google Sheets, type =FACT(405). 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(405) returns the exact integer with all 882 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 405 factorial?
405! is the product of every whole number from 1 to 405.
How many digits does 405! have?
882. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 405!?
100. Count the factors of 5 in the numbers 1 to 405: there are always more factors of 2, so every 5 makes one trailing zero.
Is 405! divisible by 406?
Yes. 406 is not prime, so its factors already appear among the numbers 1 to 405.
What is the last non-zero digit of 405!?
6. Strip the 100 trailing zeros and look at the digit that is left at the end.
What is 406! in terms of 405!?
406! = 406 × 405!. Each factorial is the previous one multiplied by the next whole number.