Sumwise

Factorial of 357

357! = 86089171981770753433609946947360469937358770518842076782003789410500952945102846156036054326173761106234407804307888401369702745339845097491755512263955132574198043880097875946075241256920534870811684390740552172007692377939405549996990584325016064835497365786670968483269731014088377225039094447618460316618389853053117846212583845756020962581719327258331288648623909404902567487504704994447722795612324646474000881379691210742660084241526570755445004999052217230570876447697234725703921234514866137330519609284367167113600715520292894181897732550877568570232753972014022765558486368378557449376209106562521009075121683480721460903087800140223715682125670949596522610688000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

758 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

357! = 357 × 356 × … × 2 × 1 = 8608917198177075343360994694736046993735…

Facts about 357!

Digits758
Trailing zeros87 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
357! ÷ 356!357

Nearby factorials

355!677376797766741836099911… (753 digits)
356!241146140004960093651568… (756 digits)
358!308199235694739297292323… (761 digits)
359!110643525614411407727944… (764 digits)

What are factorials used for?

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

Counting with 357!

There are 8.6089 × 10^757 different ways to arrange 357 different books on a shelf: 357 choices for the first place, 356 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 357 runners, there are 357 × 356 × 355 = 45,117,660 possible podiums. If the order does not matter, divide by 3! = 6 to get 7,519,610 ways to choose a group of three. Choosing a pair from 357 people can be done in 63,546 ways.

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

How big is 357!?

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

Every prime up to 357 divides 357!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 357! that gives 2^352 × 3^176 × 5^87 × 7^59 × 11^34 × 13^29 × 17^22 × 19^18 × 23^15 × 29^12 × … (71 primes in all). The 87 trailing zeros come from pairing the 87 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 357! yourself

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

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

How many digits does 357! have?

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

How many zeros are at the end of 357!?

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

Is 357! divisible by 358?

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

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

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

What is 358! in terms of 357!?

358! = 358 × 357!. Each factorial is the previous one multiplied by the next whole number.