Sumwise

Factorial of 188

188! = 269571781544284298416133291969237850331889759411386058500441657475469357377477811407420514478795326355463167934447005929160723948299905153036077797389406914158819208668188720608647906955806219449571005154484913105549235796164642126794190084542303122490376673599519594492511392559690457477160990647779328000000000000000000000000000000000000000000000

348 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

188! = 188 × 187 × … × 2 × 1 = 2695717815442842984161332919692378503318…

Facts about 188!

Digits348
Trailing zeros45 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
188! ÷ 187!188

Nearby factorials

186!766787409103095626397011… (343 digits)
187!143389245502278882136241… (346 digits)
189!509490667118697324006491… (350 digits)
190!968032267525524915612334… (352 digits)

What are factorials used for?

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

Counting with 188!

There are 2.6957 × 10^347 different ways to arrange 188 different books on a shelf: 188 choices for the first place, 187 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 188 runners, there are 188 × 187 × 186 = 6,539,016 possible podiums. If the order does not matter, divide by 3! = 6 to get 1,089,836 ways to choose a group of three. Choosing a pair from 188 people can be done in 17,578 ways.

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

How big is 188!?

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

Every prime up to 188 divides 188!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 188! that gives 2^183 × 3^90 × 5^45 × 7^29 × 11^18 × 13^15 × 17^11 × 19^9 × 23^8 × 29^6 × … (42 primes in all). The 45 trailing zeros come from pairing the 45 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 188! yourself

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

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

How many digits does 188! have?

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

How many zeros are at the end of 188!?

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

Is 188! divisible by 189?

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

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

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

What is 189! in terms of 188!?

189! = 189 × 188!. Each factorial is the previous one multiplied by the next whole number.