Sumwise

Factorial of 409

409! = 18768516728943325283569362574802352435334622144475627052133635555597571194129887961953421522615036284148629037546522329957867198433322606239550271596454086153991426809700940940744483366159468326464953421595718541453938579960776897463441588051063036175248298851984806207465203798387795782750336296118056421681011282733156350053170384252825803051539059456124740884755914301294995172497484367598521242763105718715171823662898826610476481401358635107365300721019704193073229668958019762271537259643183150355155401612313506010054106293565540940409714310874202700041309780014874776103073465680610097225200295498648784069396723106734652719702782099506188644662376758451023595711544110846171959529855519209890857125275734773319498437428388821277839290498308910682535159792034442257605120893563164426240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

893 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

409! = 409 × 408 × … × 2 × 1 = 1876851672894332528356936257480235243533…

Facts about 409!

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

Nearby factorials

407!112472534211511369693953… (888 digits)
408!458887939582966388351329… (890 digits)
410!769509185886676336626343… (895 digits)
411!316268275399423974353427… (898 digits)

What are factorials used for?

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

Counting with 409!

There are 1.8768 × 10^892 different ways to arrange 409 different books on a shelf: 409 choices for the first place, 408 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 409 runners, there are 409 × 408 × 407 = 67,916,904 possible podiums. If the order does not matter, divide by 3! = 6 to get 11,319,484 ways to choose a group of three. Choosing a pair from 409 people can be done in 83,436 ways.

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

How big is 409!?

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

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

Computing 409! yourself

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

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

How many digits does 409! have?

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

How many zeros are at the end of 409!?

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

Is 409! divisible by 410?

Yes. 410 is not prime, so its factors already appear among the numbers 1 to 409.

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

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

What is 410! in terms of 409!?

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