Sumwise

Factorial of 476

476! = 35867867064398478289209288875534387019028416258811836097155671133214919145444260935805432100557203526635297136372252064698892609981421602639632038857887829475680340687505785927330492899589147639440355071247941210396418976790496116638139844315723889910751888763214906402206414338520669922794130323497648626571442758115898723512911338574508975674744299325488079349804387736838497922290989218810430929600444317990195672429289253146597780504680119710765307542463279546249869881122681659239945050603874329534230560986949687181508415056078842404709174342374251031568128240156579745710039907957665407214016795792446584465884461641692036758184309865915561118301965962774560047028427934154513836663823856366754722964717185684148702128819913812101327095717508673881082348629325961023547740711742985105209962397132625285663757717550333733499916097970929256584070049965155727074714934204283094829846721551122905670975430021850311566169589525408067135863332586651648000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

1070 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

476! = 476 × 475 × … × 2 × 1 = 3586786706439847828920928887553438701902…

Facts about 476!

Digits1070
Trailing zeros117 (one for every factor 5 × 2)
Stirling estimate≈ Infinity
476! ÷ 475!476

Nearby factorials

474!158637182947361690797033… (1065 digits)
475!753526618999968031285909… (1067 digits)
477!171089725897180741439528… (1073 digits)
478!817808889788523944080945… (1075 digits)

What are factorials used for?

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

Counting with 476!

There are 3.5867 × 10^1069 different ways to arrange 476 different books on a shelf: 476 choices for the first place, 475 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 476 runners, there are 476 × 475 × 474 = 107,171,400 possible podiums. If the order does not matter, divide by 3! = 6 to get 17,861,900 ways to choose a group of three. Choosing a pair from 476 people can be done in 113,050 ways.

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

How big is 476!?

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

Every prime up to 476 divides 476!. Legendre's formula counts how often: add ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + … for each prime p. For 476! that gives 2^470 × 3^233 × 5^117 × 7^78 × 11^46 × 13^38 × 17^29 × 19^26 × 23^20 × 29^16 × … (91 primes in all). The 117 trailing zeros come from pairing the 117 factors of 5 with factors of 2.

Shuffles where nothing stays put

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

Computing 476! yourself

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

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

How many digits does 476! have?

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

How many zeros are at the end of 476!?

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

Is 476! divisible by 477?

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

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

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

What is 477! in terms of 476!?

477! = 477 × 476!. Each factorial is the previous one multiplied by the next whole number.