Sumwise

Factorial of 457

457! = 68905268499416699117821153198821949700273536434599701103480349133893677226970767866518890055444151267294154162677334045997717728486139089285322653217720089331219835987673641915798622793421299209264359115719734483914239856865616570015850879710593007063646021240074408981533284953925883536516950473860035789959930111348665862472268867134561504625085921570502584466952308765145613353912132394205643235647223855983341422938699259265986004719437960457948219460822621290065988995684294907191161928506637942269280862227575997952506061393102397495425157983475588037214839404262478556162662443437655546825269064833169416001119369295675851891433260829771718941380292167783963236337932552318052587286866647013609523382937597620342387866259745174096465984008970640266512473470374921697426165231078860629412638786940892381038883253007788010705554414346269927672089234265254175694088646260961519172751083314733295935160320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

1019 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

457! = 457 × 456 × … × 2 × 1 = 6890526849941669911782115319882194970027…

Facts about 457!

Digits1019
Trailing zeros112 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
457! ÷ 456!457

Nearby factorials

455!330652177144116372595018… (1014 digits)
456!150777392777717065903328… (1017 digits)
458!315586129727328481959620… (1022 digits)
459!144854033544843773219465… (1025 digits)

What are factorials used for?

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

Counting with 457!

There are 6.8905 × 10^1018 different ways to arrange 457 different books on a shelf: 457 choices for the first place, 456 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 457 runners, there are 457 × 456 × 455 = 94,818,360 possible podiums. If the order does not matter, divide by 3! = 6 to get 15,803,060 ways to choose a group of three. Choosing a pair from 457 people can be done in 104,196 ways.

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

How big is 457!?

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

Every prime up to 457 divides 457!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 457! that gives 2^452 × 3^224 × 5^112 × 7^75 × 11^44 × 13^37 × 17^27 × 19^25 × 23^19 × 29^15 × … (88 primes in all). The 112 trailing zeros come from pairing the 112 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 457! yourself

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

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

How many digits does 457! have?

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

How many zeros are at the end of 457!?

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

Is 457! divisible by 458?

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

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

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

What is 458! in terms of 457!?

458! = 458 × 457!. Each factorial is the previous one multiplied by the next whole number.