Sumwise

Factorial of 496

496! = 19758421855972011556040394209881010252929709229019283015740394324253225093838853802009754278659106158678473307060302978653943584438084628048705026922273259932516161134327038176503481846504260436779401609857335194243353581878240484768439569343411463442732182679335336286554092367438126182047153746300508241139100718797796794295443051147558521749183513801058043872061431974884955556083702452519392068766695098324727636228014745832423855890525613814861892407475739746031180902943793324536547702670176036621429167028287365115088839069266693923090687664855022706216603560835344325259805557905085483046637186211230501944131170971203537940504983738817703916336629507747486536052167235161828917249631977824289841264291804745094027075715730212891332291801566865045903464398152634536214922580075769061976157586254683174323337409382450846116522595567302340179166745852355283450217791243696873205983188657708925704634975993576199972957763408410117586121054249302952125163175281605520924755927335580827300935101317120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

1124 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

496! = 496 × 495 × … × 2 × 1 = 1975842185597201155604039420988101025292…

Facts about 496!

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

Nearby factorials

494!804758140109645306127419… (1118 digits)
495!398355279354274426533072… (1121 digits)
497!981993566241808974335207… (1126 digits)
498!489032795988420869218933… (1129 digits)

What are factorials used for?

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

Counting with 496!

There are 1.9758 × 10^1123 different ways to arrange 496 different books on a shelf: 496 choices for the first place, 495 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 496 runners, there are 496 × 495 × 494 = 121,286,880 possible podiums. If the order does not matter, divide by 3! = 6 to get 20,214,480 ways to choose a group of three. Choosing a pair from 496 people can be done in 122,760 ways.

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

How big is 496!?

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

Every prime up to 496 divides 496!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 496! that gives 2^491 × 3^246 × 5^121 × 7^81 × 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 496 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 496! ÷ e, so about 36.8% of all 1.9758 × 10^1123 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.

Computing 496! yourself

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

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

How many digits does 496! have?

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

How many zeros are at the end of 496!?

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

Is 496! divisible by 497?

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

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

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

What is 497! in terms of 496!?

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