Sumwise

Factorial of 271

271! = 1805432922365326820708516955424492484125520660105842855020022248879577908951504802625227689509591813954248242230264209544559945371371068058898490122564454210824006666408357698165578432591473887334469691168982660406042384164519589220281661285815486849774422540734904578983836230081015155015177290378499674688503576564025959753959650657985355991357102730279934224579230015631561953651476756151853628495007277857568473345077775931960475729593089132790069220249009613316928330268672000000000000000000000000000000000000000000000000000000000000000000

544 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

271! = 271 × 270 × … × 2 × 1 = 1805432922365326820708516955424492484125…

Facts about 271!

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

Nearby factorials

269!246744966839596394794111… (539 digits)
270!666211410466910265944102… (541 digits)
272!491077754883368895232716… (546 digits)
273!134064227083159708398531… (549 digits)

What are factorials used for?

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

Counting with 271!

There are 1.8054 × 10^543 different ways to arrange 271 different books on a shelf: 271 choices for the first place, 270 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 271 runners, there are 271 × 270 × 269 = 19,682,730 possible podiums. If the order does not matter, divide by 3! = 6 to get 3,280,455 ways to choose a group of three. Choosing a pair from 271 people can be done in 36,585 ways.

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

How big is 271!?

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

Every prime up to 271 divides 271!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 271! that gives 2^266 × 3^134 × 5^66 × 7^43 × 11^26 × 13^21 × 17^15 × 19^14 × 23^11 × 29^9 × … (58 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 271 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 271! ÷ e, so about 36.8% of all 1.8054 × 10^543 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.

Computing 271! yourself

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

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

How many digits does 271! have?

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

How many zeros are at the end of 271!?

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

Is 271! divisible by 272?

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

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

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

What is 272! in terms of 271!?

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