Factorial of 378
378! = 65541708340276271902204019008352962978389008751051841088942415942230989046321854066080339386430051732092164095620667065388836843907643576664280324023952356566243214613010526707791826691010063243585889921063040397851156020542328774686904494185013443516135163163651511191607848654465476242028842259062999177882803216590194421793105204104928471504685871814906648858375461473262586514088600100696246685208974750609342932893446319537243615344629631146315042397940176295441161146898023285718265664522226247723272018232161043332668561195428194657246715126246840511749587560506589381936545177356829601386376428582706057924566972775907803371281877666596128146715069471704636527403947513814421247404728613945581439892616476884992000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
812 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
378! = 378 × 377 × … × 2 × 1 = 6554170834027627190220401900835296297838…
Facts about 378!
| Digits | 812 |
|---|---|
| Trailing zeros | 93 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 378! ÷ 377! | 378 |
Nearby factorials
| 376! | 459922447758524356182925… (807 digits) |
| 377! | 173390762804963682280963… (810 digits) |
| 379! | 248403074609647070509353… (815 digits) |
| 380! | 943931683516658867935542… (817 digits) |
What are factorials used for?
Counting arrangements: 378! is the number of different orders in which 378 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 378!
There are 6.5541 × 10^811 different ways to arrange 378 different books on a shelf: 378 choices for the first place, 377 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 378 runners, there are 378 × 377 × 376 = 53,582,256 possible podiums. If the order does not matter, divide by 3! = 6 to get 8,930,376 ways to choose a group of three. Choosing a pair from 378 people can be done in 71,253 ways.
In probability, if 378 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 6.5541 × 10^811. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 378!?
378! has 812 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 3132, 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 378!
Every prime up to 378 divides 378!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 378! that gives 2^372 × 3^187 × 5^93 × 7^62 × 11^37 × 13^31 × 17^23 × 19^20 × 23^16 × 29^13 × … (74 primes in all). The 93 trailing zeros come from pairing the 93 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 378 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 378! ÷ e, so about 36.8% of all 6.5541 × 10^811 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 378! yourself
In Excel or Google Sheets, type =FACT(378). 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(378) returns the exact integer with all 812 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 378 factorial?
378! is the product of every whole number from 1 to 378.
How many digits does 378! have?
812. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 378!?
93. Count the factors of 5 in the numbers 1 to 378: there are always more factors of 2, so every 5 makes one trailing zero.
Is 378! divisible by 379?
No. 379 is prime and bigger than every factor of 378!, so it cannot divide it (Wilson's theorem says 378! leaves a remainder of 378 when divided by 379).
What is the last non-zero digit of 378!?
2. Strip the 93 trailing zeros and look at the digit that is left at the end.
What is 379! in terms of 378!?
379! = 379 × 378!. Each factorial is the previous one multiplied by the next whole number.