Factorial Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Factorial.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

The factorial of a non-negative integer nn, written n!n!, is the product of all positive integers from 1 to nn: n!=nโ‹…(nโˆ’1)โ‹ฏ2โ‹…1n! = n \cdot (n-1) \cdots 2 \cdot 1.

Factorial counts the number of ways to arrange nn distinct objects in a row โ€” for 3 items, there are 3!=63! = 6 possible orderings.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: n!n! is the product of every whole number from nn down to 11, and it counts how many ways to arrange nn things in a row.

Common stuck point: The procedure for factorial is the easy part; the trap is setting 0!=00!=0. Asking "Am I counting the ways to arrange all nn distinct items, multiplying nn down to 11?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Am I counting the ways to arrange all nn distinct items, multiplying nn down to 11?

Worked Examples

Example 1

easy
Compute 7!7!.

Answer

7!=50407! = 5040

First step

1
Recall the factorial definition: n!=nร—(nโˆ’1)ร—โ‹ฏร—2ร—1n! = n \times (n-1) \times \cdots \times 2 \times 1. Write out 7!7!: 7!=7ร—6ร—5ร—4ร—3ร—2ร—17! = 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1

Full solution

  1. 2
    Multiply step by step: 7ร—6=427 \times 6 = 42, then 42ร—5=21042 \times 5 = 210, then 210ร—4=840210 \times 4 = 840, then 840ร—3=2520840 \times 3 = 2520.
  2. 3
    Complete the product: 2520ร—2=50402520 \times 2 = 5040, so 7!=50407! = 5040.
The factorial n!n! is the product of all positive integers from 11 to nn. By convention, 0!=10! = 1. Factorials grow extremely fast.

Example 2

medium
Simplify 10!8!\frac{10!}{8!}.

Example 3

medium
Simplify (n+1)!(nโˆ’1)!\dfrac{(n+1)!}{(n-1)!}.

Example 4

medium
Compute (83)\binom{8}{3} using factorials.

Example 5

medium
Simplify n!โ‹…(n+1)(n+1)!\dfrac{n!\cdot (n+1)}{(n+1)!}.

Example 6

hard
Compute the number of trailing zeros in 25!25!.

Example 7

hard
Compute the largest power of 22 that divides 10!10!.

Example 8

hard
How many distinct arrangements of the letters in 'MATHEMATICS' (11 letters) exist?

Example 9

challenge
Find the number of trailing zeros in 100!100!.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Evaluate 6!4!โ‹…2!\frac{6!}{4! \cdot 2!}.

Example 2

medium
Solve for nn: n!(nโˆ’2)!=30\frac{n!}{(n-2)!} = 30.

Example 3

easy
Compute 4!4!.

Example 4

easy
Compute 0!0!.

Example 5

easy
Compute 6!5!\frac{6!}{5!}.

Example 6

easy
Compute 1!1!.

Example 7

easy
Compute 3!+2!3!+2!.

Example 8

easy
Compute 5!5!.

Example 9

easy
How many ways can 4 distinct people line up?

Example 10

easy
Compute 7!7!\frac{7!}{7!}.

Example 11

medium
Compute 8!6!โ€‰2!\frac{8!}{6!\,2!}.

Example 12

medium
Solve for nn: n!(nโˆ’2)!=20\frac{n!}{(n-2)!}=20.

Example 13

medium
Compute 10!8!\frac{10!}{8!}.

Example 14

medium
How many trailing zeros does 10!10! have?

Example 15

medium
Compute 9!3!โ€‰6!\frac{9!}{3!\,6!}.

Example 16

medium
Express 7ร—6ร—57\times 6\times 5 as a ratio of factorials.

Example 17

medium
Simplify (n+1)!n!\frac{(n+1)!}{n!}.

Example 18

medium
Compute 6!2!โ€‰2!โ€‰2!\frac{6!}{2!\,2!\,2!}.

Example 19

medium
Compute 9!7!\frac{9!}{7!}.

Example 20

challenge
Show that n!=nร—(nโˆ’1)!n!=n\times(n-1)! and use it to compute 5!5! from 4!=244!=24.

Example 21

challenge
For how many positive integers nn is n!n! divisible by 100100? Find the smallest such nn.

Example 22

challenge
Simplify (n+2)!n!\frac{(n+2)!}{n!} to a polynomial in nn.

Example 23

easy
Compute 6!6!.

Example 24

easy
How many distinct ways can 55 different books be arranged on a shelf?

Example 25

easy
Compute 5!3!2!\dfrac{5!}{3!2!}.

Example 26

easy
In how many ways can 33 distinct friends sit in 33 chairs in a row?

Example 27

medium
Solve for nn: n!=120n!=120.

Example 28

medium
How many distinct arrangements of the letters in the word 'BOOK' are there?

Example 29

medium
How many distinct 77-letter arrangements exist for the letters in 'MISSING'?

Example 30

hard
Solve for nn in (n2)=45\binom{n}{2}=45.

Example 31

hard
In a class of 3030, how many ways can a committee of 44 be chosen?

Example 32

hard
Solve for nn: (n+1)!=42โ‹…(nโˆ’1)!(n+1)!=42\cdot(n-1)!.

Background Knowledge

These ideas may be useful before you work through the harder examples.

multiplication