Sumwise

Factorial of 270

270! = 6662114104669102659441021975736134627769448930279862933653218630551948003511087832565415828448678280273978753617211105330479503215391395051285941411676952807468659285639696303194016356426102905293246092874474761645912856695644240665245982604485191327580894984261640512855484243841384335849362695123615035750935706878324574737858489512861092219029899373726694555642915186832331932293272162921969108837665231946747134114678139970333858780786306763062986052579371266852134060032000000000000000000000000000000000000000000000000000000000000000000

541 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

270! = 270 × 269 × … × 2 × 1 = 6662114104669102659441021975736134627769…

Facts about 270!

Digits541
Trailing zeros66 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
270! ÷ 269!270

Nearby factorials

268!917267534719689199978111… (536 digits)
269!246744966839596394794111… (539 digits)
271!180543292236532682070851… (544 digits)
272!491077754883368895232716… (546 digits)

What are factorials used for?

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

Counting with 270!

There are 6.6621 × 10^540 different ways to arrange 270 different books on a shelf: 270 choices for the first place, 269 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 270 runners, there are 270 × 269 × 268 = 19,464,840 possible podiums. If the order does not matter, divide by 3! = 6 to get 3,244,140 ways to choose a group of three. Choosing a pair from 270 people can be done in 36,315 ways.

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

How big is 270!?

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

Every prime up to 270 divides 270!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 270! that gives 2^266 × 3^134 × 5^66 × 7^43 × 11^26 × 13^21 × 17^15 × 19^14 × 23^11 × 29^9 × … (57 primes in all). The 66 trailing zeros come from pairing the 66 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 270! yourself

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

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

How many digits does 270! have?

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

How many zeros are at the end of 270!?

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

Is 270! divisible by 271?

No. 271 is prime and bigger than every factor of 270!, so it cannot divide it (Wilson's theorem says 270! leaves a remainder of 270 when divided by 271).

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

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

What is 271! in terms of 270!?

271! = 271 × 270!. Each factorial is the previous one multiplied by the next whole number.