Sumwise

Factorial of 343

343! = 204041444647727894832322663397251900658245332324390400529489242223120675094188773114043975799743992919578121862904221538707624613539651617735241304823433436143266461705767566584680005983534555108566627714057772167106506278461879916565954729928846028000454704474107577615388226190068321524291467011878325877132356129908197680574487841393438405895672964096092783542137458755938126723479967598884044727550474402522264572563730271549684118667663915926753884781245932247800208523136927533775595342210049945491110284451604187735397616527464845239386084578367781811330601019717014971878449223769083849020700195533187250240612211539806462750071193600000000000000000000000000000000000000000000000000000000000000000000000000000000000

723 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

343! = 343 × 342 × … × 2 × 1 = 2040414446477278948323226633972519006582…

Facts about 343!

Digits723
Trailing zeros83 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
343! ÷ 342!343

Nearby factorials

341!173939478498736547859719… (718 digits)
342!594873016465678993680241… (720 digits)
344!701902569588183958223189… (725 digits)
345!242156386507923465587000… (728 digits)

What are factorials used for?

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

Counting with 343!

There are 2.0404 × 10^722 different ways to arrange 343 different books on a shelf: 343 choices for the first place, 342 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 343 runners, there are 343 × 342 × 341 = 40,001,346 possible podiums. If the order does not matter, divide by 3! = 6 to get 6,666,891 ways to choose a group of three. Choosing a pair from 343 people can be done in 58,653 ways.

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

How big is 343!?

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

Every prime up to 343 divides 343!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 343! that gives 2^337 × 3^169 × 5^83 × 7^57 × 11^33 × 13^28 × 17^21 × 19^18 × 23^14 × 29^11 × … (68 primes in all). The 83 trailing zeros come from pairing the 83 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 343! yourself

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

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

How many digits does 343! have?

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

How many zeros are at the end of 343!?

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

Is 343! divisible by 344?

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

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

6. Strip the 83 trailing zeros and look at the digit that is left at the end.

What is 344! in terms of 343!?

344! = 344 × 343!. Each factorial is the previous one multiplied by the next whole number.