Sumwise

Factorial of 314

314! = 20659137880503071791380637818439571007133129436819056465847536017053176899692160345149663278684609438960910162610648177545579277167001701924427200484080511242637757175037776724251512761149652829822488653655829061323638283949770912058905476955261529375305870526412229341127978156375316284257808964108803665013084709514051029432670718461463522339767687828093878998487884593050868977280112740242289361044650374317503958191964888755482673372291876979427103222539172602010449676892667909958293046793658331003645145659047333929552365659453811997786326119570813236432202369408696320000000000000000000000000000000000000000000000000000000000000000000000000000

650 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

314! = 314 × 313 × … × 2 × 1 = 2065913788050307179138063781843957100713…

Facts about 314!

Digits650
Trailing zeros76 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
314! ÷ 313!314

Nearby factorials

312!210202660512637835935172… (645 digits)
313!657934327404556426477090… (647 digits)
315!650762843235846761428490… (652 digits)
316!205641058462527576611402… (655 digits)

What are factorials used for?

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

Counting with 314!

There are 2.0659 × 10^649 different ways to arrange 314 different books on a shelf: 314 choices for the first place, 313 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 314 runners, there are 314 × 313 × 312 = 30,663,984 possible podiums. If the order does not matter, divide by 3! = 6 to get 5,110,664 ways to choose a group of three. Choosing a pair from 314 people can be done in 49,141 ways.

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

How big is 314!?

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

Every prime up to 314 divides 314!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 314! that gives 2^309 × 3^153 × 5^76 × 7^50 × 11^30 × 13^25 × 17^19 × 19^16 × 23^13 × 29^10 × … (65 primes in all). The 76 trailing zeros come from pairing the 76 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 314! yourself

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

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

How many digits does 314! have?

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

How many zeros are at the end of 314!?

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

Is 314! divisible by 315?

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

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

2. Strip the 76 trailing zeros and look at the digit that is left at the end.

What is 315! in terms of 314!?

315! = 315 × 314!. Each factorial is the previous one multiplied by the next whole number.