Factorial of 418
418! = 6704355013599149103015045905466432364040846480450435787016768777991159400790824797163125352315662541484193372522628052786533057923537924873979389482775425984192074460353521339557182658795257317038739200280867153661360553164629311944707607196111767381867985022245744299185784051452123155359586368128908460436478388535967508669220447438216942144449886244417897412778543445532380726457855647797699659108189266664699844550884576654787064971765018956246641960467843062187114591460766175332301862495476814413835914770210533126550126755170576349340676269029625659516400040811320654527007718124864275197728968809462980079566598722886065615002257070184534270541630649084297677165561797310722594123157794878108868075711717018644526852339267570018710653517771465385987521083324161450749780049147177405164565284686667704172544000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
916 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
418! = 418 × 417 × … × 2 × 1 = 6704355013599149103015045905466432364040…
Facts about 418!
| Digits | 916 |
|---|---|
| Trailing zeros | 102 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 418! ÷ 417! | 418 |
Nearby factorials
| 416! | 384631338771995749028435… (911 digits) |
| 417! | 160391268267922227344857… (914 digits) |
| 419! | 280912475069804347416330… (919 digits) |
| 420! | 117983239529317825914858… (922 digits) |
What are factorials used for?
Counting arrangements: 418! is the number of different orders in which 418 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 418!
There are 6.7043 × 10^915 different ways to arrange 418 different books on a shelf: 418 choices for the first place, 417 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 418 runners, there are 418 × 417 × 416 = 72,511,296 possible podiums. If the order does not matter, divide by 3! = 6 to get 12,085,216 ways to choose a group of three. Choosing a pair from 418 people can be done in 87,153 ways.
In probability, if 418 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 6.7043 × 10^915. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 418!?
418! has 916 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 3708, 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 418!
Every prime up to 418 divides 418!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 418! that gives 2^414 × 3^206 × 5^102 × 7^68 × 11^41 × 13^34 × 17^25 × 19^23 × 23^18 × 29^14 × … (80 primes in all). The 102 trailing zeros come from pairing the 102 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 418 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 418! ÷ e, so about 36.8% of all 6.7043 × 10^915 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 418! yourself
In Excel or Google Sheets, type =FACT(418). 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(418) returns the exact integer with all 916 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 418 factorial?
418! is the product of every whole number from 1 to 418.
How many digits does 418! have?
916. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 418!?
102. Count the factors of 5 in the numbers 1 to 418: there are always more factors of 2, so every 5 makes one trailing zero.
Is 418! divisible by 419?
No. 419 is prime and bigger than every factor of 418!, so it cannot divide it (Wilson's theorem says 418! leaves a remainder of 418 when divided by 419).
What is the last non-zero digit of 418!?
4. Strip the 102 trailing zeros and look at the digit that is left at the end.
What is 419! in terms of 418!?
419! = 419 × 418!. Each factorial is the previous one multiplied by the next whole number.