Factorial of 364
364! = 68778434727558170665560119859758980014152110328427615799650945736715359282797088821002789065754121011989513190030088571673172797598273917406699638111380472283834806453514358733364634223094358532372731301574000369443905605518076728514974085044371222206333934721571055193197789815783144536663812849900107187614208971784984648790424495130430227400674872325480960239528766785453197187500989255302314158813346605615490104466128318353453504602893495464519146982514199769387253600408194477090596739724944349282593794074906025643393948287660157765859927716880912584256304813274126154489693506035483236032497023805268456191795728613542506025326335769192545591124637710284219864138057688827339735040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
776 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
364! = 364 × 363 × … × 2 × 1 = 6877843472755817066556011985975898001415…
Facts about 364!
| Digits | 776 |
|---|---|
| Trailing zeros | 88 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 364! ÷ 363! | 364 |
Nearby factorials
| 362! | 520528219716330417049315… (771 digits) |
| 363! | 188951743757027941388901… (774 digits) |
| 365! | 251041286755587322929294… (779 digits) |
| 366! | 918811109525449601921217… (781 digits) |
What are factorials used for?
Counting arrangements: 364! is the number of different orders in which 364 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 364!
There are 6.8778 × 10^775 different ways to arrange 364 different books on a shelf: 364 choices for the first place, 363 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 364 runners, there are 364 × 363 × 362 = 47,831,784 possible podiums. If the order does not matter, divide by 3! = 6 to get 7,971,964 ways to choose a group of three. Choosing a pair from 364 people can be done in 66,066 ways.
In probability, if 364 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 6.8778 × 10^775. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 364!?
364! has 776 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 3087, 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 364!
Every prime up to 364 divides 364!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 364! that gives 2^359 × 3^179 × 5^88 × 7^60 × 11^36 × 13^30 × 17^22 × 19^20 × 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 364 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 364! ÷ e, so about 36.8% of all 6.8778 × 10^775 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 364! yourself
In Excel or Google Sheets, type =FACT(364). 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(364) returns the exact integer with all 776 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 364 factorial?
364! is the product of every whole number from 1 to 364.
How many digits does 364! have?
776. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 364!?
88. Count the factors of 5 in the numbers 1 to 364: there are always more factors of 2, so every 5 makes one trailing zero.
Is 364! divisible by 365?
Yes. 365 is not prime, so its factors already appear among the numbers 1 to 364.
What is the last non-zero digit of 364!?
4. Strip the 88 trailing zeros and look at the digit that is left at the end.
What is 365! in terms of 364!?
365! = 365 × 364!. Each factorial is the previous one multiplied by the next whole number.