Sumwise

Factorial of 408

408! = 45888793958296638835132915830812597641404944118522315530889084488013621501540068366634282451381506807209361949991497139261288993724505149729951764294508768102668525207092765136294580357358113267640472913436964649031634669830750360546311951225092997983492173232236689993802454274786786754890797790019697852520809982232656112599438592305197562473200634367053156197447223230550110446204118258187093503088278040868390766901953121297008511983761944027788021322786562819249950290850904064233587431890423350501602448929861872885217863798448755355524973865218099511103446894901894318100424121468484345293888253052931012394613014930891571441816093152826867101864001854403480674111354794244919216454414472395821166565466344189045228453370143817305230539115669708270257114405952181558936725901132431360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

890 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

408! = 408 × 407 × … × 2 × 1 = 4588879395829663883513291583081259764140…

Facts about 408!

Digits890
Trailing zeros100 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
408! ÷ 407!408

Nearby factorials

406!276345292902976338314381… (885 digits)
407!112472534211511369693953… (888 digits)
409!187685167289433252835693… (893 digits)
410!769509185886676336626343… (895 digits)

What are factorials used for?

Counting arrangements: 408! is the number of different orders in which 408 distinct items can be lined up. Factorials also appear in probability, combinations and series.

Counting with 408!

There are 4.5888 × 10^889 different ways to arrange 408 different books on a shelf: 408 choices for the first place, 407 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 408 runners, there are 408 × 407 × 406 = 67,418,736 possible podiums. If the order does not matter, divide by 3! = 6 to get 11,236,456 ways to choose a group of three. Choosing a pair from 408 people can be done in 83,028 ways.

In probability, if 408 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 4.5888 × 10^889. That is why shuffled decks and passwords with many symbols are so hard to guess.

How big is 408!?

408! has 890 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 3465, 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 408!

Every prime up to 408 divides 408!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 408! that gives 2^404 × 3^202 × 5^100 × 7^67 × 11^40 × 13^33 × 17^25 × 19^22 × 23^17 × 29^14 × … (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 408 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 408! ÷ e, so about 36.8% of all 4.5888 × 10^889 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.

Computing 408! yourself

In Excel or Google Sheets, type =FACT(408). 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(408) returns the exact integer with all 890 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.

Calculate another factorial

How answers are calculated and checked: methodology.

Questions

What is 408 factorial?

408! is the product of every whole number from 1 to 408.

How many digits does 408! have?

890. The number of digits of n! is the whole part of log10(n!) plus one.

How many zeros are at the end of 408!?

100. Count the factors of 5 in the numbers 1 to 408: there are always more factors of 2, so every 5 makes one trailing zero.

Is 408! divisible by 409?

No. 409 is prime and bigger than every factor of 408!, so it cannot divide it (Wilson's theorem says 408! leaves a remainder of 408 when divided by 409).

What is the last non-zero digit of 408!?

6. Strip the 100 trailing zeros and look at the digit that is left at the end.

What is 409! in terms of 408!?

409! = 409 × 408!. Each factorial is the previous one multiplied by the next whole number.