Sumwise

Factorial of 417

417! = 16039126826792222734485755754704383646030733206819224370853513822945357418159867935796950603625986941349744910341215437288356597903200777210477008331998626756440369522376845309945413059318797409183586603542744386749666395130692133839013414344764993736526279957525704065037760888641442955405709014662460431666216240516668681026843175689514215656578675225880137351144840778785599824061855616740908275378443221685884795576278891518629342037715356354657038182937423593749077970001832955340435077740375154100085920502896012264473987452561187438614058059879487223723445073711293431882793584030775777984997533036992775309967939528435563672254203517187881030003901074364348509965458845240963143835305729373466191568688318226422313043873845861288781467745864749727242873405081725958731531218055448337714271015996812689408000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

914 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

417! = 417 × 416 × … × 2 × 1 = 1603912682679222273448575575470438364603…

Facts about 417!

Digits914
Trailing zeros102 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
417! ÷ 416!417

Nearby factorials

415!924594564355759012087585… (908 digits)
416!384631338771995749028435… (911 digits)
418!670435501359914910301504… (916 digits)
419!280912475069804347416330… (919 digits)

What are factorials used for?

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

Counting with 417!

There are 1.6039 × 10^913 different ways to arrange 417 different books on a shelf: 417 choices for the first place, 416 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 417 runners, there are 417 × 416 × 415 = 71,990,880 possible podiums. If the order does not matter, divide by 3! = 6 to get 11,998,480 ways to choose a group of three. Choosing a pair from 417 people can be done in 86,736 ways.

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

How big is 417!?

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

Every prime up to 417 divides 417!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 417! that gives 2^413 × 3^206 × 5^102 × 7^68 × 11^40 × 13^34 × 17^25 × 19^22 × 23^18 × 29^14 × … (80 primes in all). The 102 trailing zeros come from pairing the 102 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 417! yourself

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

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

How many digits does 417! have?

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

How many zeros are at the end of 417!?

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

Is 417! divisible by 418?

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

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

8. Strip the 102 trailing zeros and look at the digit that is left at the end.

What is 418! in terms of 417!?

418! = 418 × 417!. Each factorial is the previous one multiplied by the next whole number.