Factorial of 478
478! = 8178088897885239440809453119355093446660593077506651501168075952399800854676164158929253351519645747294007558875691704263735708431424013931451942651831572447431971758795444226146916364063723196678237598374958083617645905222093857570195713343050941242990895149345577949141475707668743866416598478539404872750048377506973604353284862663019493507695748712007235020231499230325598557269879287824091114534478907167672554487912525452943173541750095374772754711526882516222247832115258154396662911207986970379781773288390450375507007683276312541328120005107383480703722647525141121500363359253795458837239113541452575937728452561075634533086571755287943428339558051308376338082763739554834081842371822194758277364293306639100008977583713268641975185786166282696930061981578095069135026168721671061898502686320621360883050742147781393240381869833959696076707475812355296707397453288181771319774031593985329230416423897562002138956063429330191755379655009752095653888000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1075 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
478! = 478 × 477 × … × 2 × 1 = 8178088897885239440809453119355093446660…
Facts about 478!
| Digits | 1075 |
|---|---|
| Trailing zeros | 117 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 478! ÷ 477! | 478 |
Nearby factorials
| 476! | 358678670643984782892092… (1070 digits) |
| 477! | 171089725897180741439528… (1073 digits) |
| 479! | 391730458208702969214772… (1078 digits) |
| 480! | 188030619940177425223090… (1081 digits) |
What are factorials used for?
Counting arrangements: 478! is the number of different orders in which 478 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 478!
There are 8.1780 × 10^1074 different ways to arrange 478 different books on a shelf: 478 choices for the first place, 477 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 478 runners, there are 478 × 477 × 476 = 108,530,856 possible podiums. If the order does not matter, divide by 3! = 6 to get 18,088,476 ways to choose a group of three. Choosing a pair from 478 people can be done in 114,003 ways.
In probability, if 478 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 8.1780 × 10^1074. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 478!?
478! has 1075 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 4356, 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 478!
Every prime up to 478 divides 478!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 478! that gives 2^471 × 3^235 × 5^117 × 7^78 × 11^46 × 13^38 × 17^29 × 19^26 × 23^20 × 29^16 × … (91 primes in all). The 117 trailing zeros come from pairing the 117 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 478 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 478! ÷ e, so about 36.8% of all 8.1780 × 10^1074 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 478! yourself
In Excel or Google Sheets, type =FACT(478). 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(478) returns the exact integer with all 1075 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 478 factorial?
478! is the product of every whole number from 1 to 478.
How many digits does 478! have?
1075. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 478!?
117. Count the factors of 5 in the numbers 1 to 478: there are always more factors of 2, so every 5 makes one trailing zero.
Is 478! divisible by 479?
No. 479 is prime and bigger than every factor of 478!, so it cannot divide it (Wilson's theorem says 478! leaves a remainder of 478 when divided by 479).
What is the last non-zero digit of 478!?
8. Strip the 117 trailing zeros and look at the digit that is left at the end.
What is 479! in terms of 478!?
479! = 479 × 478!. Each factorial is the previous one multiplied by the next whole number.