Sumwise

Factorial of 497

497! = 9819935662418089743352075922310862095706065486822583658822975979153852871637910339598847876493575760863201233608970580391009961465728060140206398380369810186460532083760537973722230477712617437079362600099095591538946730193485520929914465963675497331037894791629662134417383906616748712477435411911352595846133057242505006764835196420336585309344206359125847804414531691517822911373600118902137858177047463867389635205323328678714656377591230065986360526515442653777496908763065282294664208227077490200850296013058820462199153017425546879776071769432946284989651969735166129654123362278827485074178681546981559466233191972688158356430976918192398846419304865350500808417927115875428971873067092978672051108353026958311731456630717915806992149025378731927814021805881859364498816522297657223802150320368577537638698692463078070519911729996949263069045872688620575874758242248117345983373644762881336075203583068807371386560008413979828440302163961903567206206098114957943899603695885783671168564745354608640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

1126 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

497! = 497 × 496 × … × 2 × 1 = 9819935662418089743352075922310862095706…

Facts about 497!

Digits1126
Trailing zeros121 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
497! ÷ 496!497

Nearby factorials

495!398355279354274426533072… (1121 digits)
496!197584218559720115560403… (1124 digits)
498!489032795988420869218933… (1129 digits)
499!244027365198222013740247… (1132 digits)

What are factorials used for?

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

Counting with 497!

There are 9.8199 × 10^1125 different ways to arrange 497 different books on a shelf: 497 choices for the first place, 496 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 497 runners, there are 497 × 496 × 495 = 122,023,440 possible podiums. If the order does not matter, divide by 3! = 6 to get 20,337,240 ways to choose a group of three. Choosing a pair from 497 people can be done in 123,256 ways.

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

How big is 497!?

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

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

Shuffles where nothing stays put

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

Computing 497! yourself

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

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

How many digits does 497! have?

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

How many zeros are at the end of 497!?

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

Is 497! divisible by 498?

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

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

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

What is 498! in terms of 497!?

498! = 498 × 497!. Each factorial is the previous one multiplied by the next whole number.