Sumwise

Factorial of 494

494! = 80475814010964530612741911900786128433242543291867395795619071050233077117297384335328096605812586179042331814354443542904625221725662382081724612749565248992001307976242416815344908139883758703076741649793642856970322506835453261520200266142927107538009867543724895269444820655906346456692545398747589773293828277931723665263290367984516624915214702676189491170012349197152800407639713475559596239681879677112771408553334741904626327348181874449584117006662348265034135316649532928219891262097491188585162785224370173978041866525198329761692276249816808024668473284601435016535539092151700403415759148791261412284665896754657616245132713175373508945652612853321466829798660944777732637869142953015191598502328953833064626408096001192942865313626453507029584002925027022386017117057982115762366233244764920064855561295953286274505223996282593435073178339248758893166413291152235553950729833242542056470491104568166340717488446596652482836921856668715184608843170746193877992652033787800697706643456000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

1118 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

494! = 494 × 493 × … × 2 × 1 = 8047581401096453061274191190078612843324…

Facts about 494!

Digits1118
Trailing zeros120 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
494! ÷ 493!494

Nearby factorials

492!330439160436247261715605… (1113 digits)
493!162906506095069900025793… (1116 digits)
495!398355279354274426533072… (1121 digits)
496!197584218559720115560403… (1124 digits)

What are factorials used for?

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

Counting with 494!

There are 8.0475 × 10^1117 different ways to arrange 494 different books on a shelf: 494 choices for the first place, 493 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 494 runners, there are 494 × 493 × 492 = 119,822,664 possible podiums. If the order does not matter, divide by 3! = 6 to get 19,970,444 ways to choose a group of three. Choosing a pair from 494 people can be done in 121,771 ways.

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

How big is 494!?

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

Every prime up to 494 divides 494!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 494! that gives 2^487 × 3^244 × 5^120 × 7^81 × 11^48 × 13^40 × 17^30 × 19^27 × 23^21 × 29^17 × … (94 primes in all). The 120 trailing zeros come from pairing the 120 factors of 5 with factors of 2.

Shuffles where nothing stays put

A related count is the number of derangements of 494 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 494! ÷ e, so about 36.8% of all 8.0475 × 10^1117 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.

Computing 494! yourself

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

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

How many digits does 494! have?

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

How many zeros are at the end of 494!?

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

Is 494! divisible by 495?

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

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

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

What is 495! in terms of 494!?

495! = 495 × 494!. Each factorial is the previous one multiplied by the next whole number.