Factorial of 360
360! = 3983166922118810678205990336564718434224120605664143701183608768141905250787782877719783678679061484962365081537093035923501297045164325783140744700987694957532389158400858116442933576455898753759925348456032608650278150327110180834816760596303097286523605280428429436106445252981359910377930818774855112452474332249873412259136132368731917415053983296042291396691439150433279600306468690306707682489567387757087354859605042563344537364880212053587269055695748062646674865811939840510090971364835065252717494840800357338638708817635670004576509737845399272402043442156827044195038802613229625783142492845706197046207004041551342095347194089863859659283335973442255940429503528960000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
766 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
360! = 360 × 359 × … × 2 × 1 = 3983166922118810678205990336564718434224…
Facts about 360!
| Digits | 766 |
|---|---|
| Trailing zeros | 88 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 360! ÷ 359! | 360 |
Nearby factorials
| 358! | 308199235694739297292323… (761 digits) |
| 359! | 110643525614411407727944… (764 digits) |
| 361! | 143792325888489065483236… (769 digits) |
| 362! | 520528219716330417049315… (771 digits) |
What are factorials used for?
Counting arrangements: 360! is the number of different orders in which 360 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 360!
There are 3.9831 × 10^765 different ways to arrange 360 different books on a shelf: 360 choices for the first place, 359 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 360 runners, there are 360 × 359 × 358 = 46,267,920 possible podiums. If the order does not matter, divide by 3! = 6 to get 7,711,320 ways to choose a group of three. Choosing a pair from 360 people can be done in 64,620 ways.
In probability, if 360 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 3.9831 × 10^765. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 360!?
360! has 766 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 3024, 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 360!
Every prime up to 360 divides 360!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 360! that gives 2^356 × 3^178 × 5^88 × 7^59 × 11^34 × 13^29 × 17^22 × 19^18 × 23^15 × 29^12 × … (72 primes in all). The 88 trailing zeros come from pairing the 88 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 360 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 360! ÷ e, so about 36.8% of all 3.9831 × 10^765 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 360! yourself
In Excel or Google Sheets, type =FACT(360). 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(360) returns the exact integer with all 766 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.
How answers are calculated and checked: methodology.
Questions
What is 360 factorial?
360! is the product of every whole number from 1 to 360.
How many digits does 360! have?
766. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 360!?
88. Count the factors of 5 in the numbers 1 to 360: there are always more factors of 2, so every 5 makes one trailing zero.
Is 360! divisible by 361?
Yes. 361 is not prime, so its factors already appear among the numbers 1 to 360.
What is the last non-zero digit of 360!?
6. Strip the 88 trailing zeros and look at the digit that is left at the end.
What is 361! in terms of 360!?
361! = 361 × 360!. Each factorial is the previous one multiplied by the next whole number.