Factorial of 348
348! = 1011767546676617887960664754535787615428015341358325958898316252395358455648721360760823440810570433450196906340014421059760685729776807559925847023856652408264351581344700051858641586782280866580350687282727162522305771406502061357960217779869158936861112305669299839519655553684337102887487674909851521975068276660493938820247192861374449340562300403876046085675108929880166630692612093874299736773023487549292379734292985047347236804102982292877761657645171046361646773303337808388142714811364175494474962661093619102341018094524522732599036851128697549914337244254445176318287580659119213336647244492899558999003128800585488468853730315170425602048000000000000000000000000000000000000000000000000000000000000000000000000000000000000
736 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
348! = 348 × 347 × … × 2 × 1 = 1011767546676617887960664754535787615428…
Facts about 348!
| Digits | 736 |
|---|---|
| Trailing zeros | 84 (one for every factor 5 × 2) |
| Stirling estimate | ≈ Infinity |
| 348! ÷ 347! | 348 |
Nearby factorials
| 346! | 837861097317415190931021… (730 digits) |
| 347! | 290737800769143071253064… (733 digits) |
| 349! | 353106873790139642898271… (738 digits) |
| 350! | 123587405826548875014395… (741 digits) |
What are factorials used for?
Counting arrangements: 348! is the number of different orders in which 348 distinct items can be lined up. Factorials also appear in probability, combinations and series.
Counting with 348!
There are 1.0117 × 10^735 different ways to arrange 348 different books on a shelf: 348 choices for the first place, 347 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 348 runners, there are 348 × 347 × 346 = 41,781,576 possible podiums. If the order does not matter, divide by 3! = 6 to get 6,963,596 ways to choose a group of three. Choosing a pair from 348 people can be done in 60,378 ways.
In probability, if 348 names are drawn out of a hat one at a time, the chance of drawing them in one particular order is 1 in 1.0117 × 10^735. That is why shuffled decks and passwords with many symbols are so hard to guess.
How big is 348!?
348! has 736 digits, so it is larger than the estimated number of atoms in the observable universe (about 10^80). The digits add up to 2970, 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 348!
Every prime up to 348 divides 348!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 348! that gives 2^343 × 3^171 × 5^84 × 7^57 × 11^33 × 13^28 × 17^21 × 19^18 × 23^15 × 29^12 × … (69 primes in all). The 84 trailing zeros come from pairing the 84 factors of 5 with factors of 2.
Shuffles where nothing stays put
A related count is the number of derangements of 348 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 348! ÷ e, so about 36.8% of all 1.0117 × 10^735 orders are derangements. From about four items on, that share stays close to 1 ÷ e, roughly 37%, however many items there are.
Computing 348! yourself
In Excel or Google Sheets, type =FACT(348). 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(348) returns the exact integer with all 736 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 348 factorial?
348! is the product of every whole number from 1 to 348.
How many digits does 348! have?
736. The number of digits of n! is the whole part of log10(n!) plus one.
How many zeros are at the end of 348!?
84. Count the factors of 5 in the numbers 1 to 348: there are always more factors of 2, so every 5 makes one trailing zero.
Is 348! divisible by 349?
No. 349 is prime and bigger than every factor of 348!, so it cannot divide it (Wilson's theorem says 348! leaves a remainder of 348 when divided by 349).
What is the last non-zero digit of 348!?
8. Strip the 84 trailing zeros and look at the digit that is left at the end.
What is 349! in terms of 348!?
349! = 349 × 348!. Each factorial is the previous one multiplied by the next whole number.