Sumwise

Factorial of 246

246! = 847809747782853428162385614555484172813716330038393266614306888547483324326458559715895819236467405327442329682630071789503824810226668938465375221421478501619519016431211258306843984600018680684699129200342991286010101141191392319487892821710751341634617090843411664746702478340313338347309216297036908822399205735512679067130965761217294141638428587515529230511566627641340593733206374732779182724941422228676645372087500800000000000000000000000000000000000000000000000000000000000

483 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

246! = 246 × 245 × … × 2 × 1 = 8478097477828534281623856145554841728137…

Facts about 246!

Digits483
Trailing zeros59 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
246! ÷ 245!246

Nearby factorials

244!140668615859109578258235… (479 digits)
245!344638108854818466732677… (481 digits)
247!209409007702364796756109… (486 digits)
248!519334339101864695955150… (488 digits)

What are factorials used for?

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

Counting with 246!

There are 8.4780 × 10^482 different ways to arrange 246 different books on a shelf: 246 choices for the first place, 245 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 246 runners, there are 246 × 245 × 244 = 14,705,880 possible podiums. If the order does not matter, divide by 3! = 6 to get 2,450,980 ways to choose a group of three. Choosing a pair from 246 people can be done in 30,135 ways.

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

How big is 246!?

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

Every prime up to 246 divides 246!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 246! that gives 2^240 × 3^122 × 5^59 × 7^40 × 11^24 × 13^19 × 17^14 × 19^12 × 23^10 × 29^8 × … (53 primes in all). The 59 trailing zeros come from pairing the 59 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 246! yourself

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

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

How many digits does 246! have?

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

How many zeros are at the end of 246!?

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

Is 246! divisible by 247?

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

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

8. Strip the 59 trailing zeros and look at the digit that is left at the end.

What is 247! in terms of 246!?

247! = 247 × 246!. Each factorial is the previous one multiplied by the next whole number.