Sumwise

Factorial of 489

489! = 2791572009766702095455085179310356945791071480373753268849151979006952893973974681848377124112304384273448832255862486672036836466626210675423136610296414018385559949264321733126564373094318662719484966254955105670189211053958476142630173843782989756165601407707637586439134090441149761392006711309610212904291997639771324511819805722259220440518541821761385169012366111544499363844946016567770191301676497347971870437449709044519747165404867643979945765754288318372466128553923007906137490435639059656165206226282938251682851601624816984571953204444114597935585254989364515425041429484245631854776850376085853530446393697046245327379574148368268655046779713050103902259321724656076158225810016343633411683362635278982074755867756748985320613402457524432461217372834696745911456713424967122274105283729624596682722039081842999480153335511954698172459181873166954394542593128009867256695468721044028210751102415055363537458776361516090237887324382226289591651457536562141380289804999065600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

1105 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

489! = 489 × 488 × … × 2 × 1 = 2791572009766702095455085179310356945791…

Facts about 489!

Digits1105
Trailing zeros119 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
489! ÷ 488!489

Nearby factorials

487!116982299514176727993524… (1100 digits)
488!570873621629182432608401… (1102 digits)
490!136787028478568402677299… (1108 digits)
491!671624309829770857145538… (1110 digits)

What are factorials used for?

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

Counting with 489!

There are 2.7915 × 10^1104 different ways to arrange 489 different books on a shelf: 489 choices for the first place, 488 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 489 runners, there are 489 × 488 × 487 = 116,213,784 possible podiums. If the order does not matter, divide by 3! = 6 to get 19,368,964 ways to choose a group of three. Choosing a pair from 489 people can be done in 119,316 ways.

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

How big is 489!?

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

Every prime up to 489 divides 489!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 489! that gives 2^483 × 3^243 × 5^119 × 7^79 × 11^48 × 13^39 × 17^29 × 19^26 × 23^21 × 29^16 × … (93 primes in all). The 119 trailing zeros come from pairing the 119 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 489! yourself

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

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

How many digits does 489! have?

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

How many zeros are at the end of 489!?

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

Is 489! divisible by 490?

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

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

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

What is 490! in terms of 489!?

490! = 490 × 489!. Each factorial is the previous one multiplied by the next whole number.