Lesson Explainer: Factorials | Nagwa Lesson Explainer: Factorials | Nagwa

Lesson Explainer: Factorials Mathematics

In this explainer, we will learn how to find the factorial of any number 𝑛, which is the product of all integers less than or equal to 𝑛 and greater than or equal to one, and we will learn how to find factorials to solve problems.

When considering the number of different 4-digit numbers that we can form from the digits 3, 5, 7, and 9, we find that there are a total of 4Γ—3Γ—2Γ—1 distinct possible numbers. More generally, if we want to know how many ways we can rearrange a set of 𝑛 items, we find that the total number is 𝑛×(π‘›βˆ’1)Γ—(π‘›βˆ’2)Γ—β‹―Γ—2Γ—1. This calculation, of finding the product of all of the positive integers less than or equal to 𝑛, comes up sufficiently regularly in various areas of mathematics that mathematicians have a given it a name: the factorial of 𝑛.

Definition: Factorial

The factorial of a positive integer 𝑛 is the product of all the positive integers less than or equal to 𝑛. We use the notation 𝑛, which is read as 𝑛 factorial, to denote the factorial. Hence, 𝑛=𝑛×(π‘›βˆ’1)Γ—(π‘›βˆ’2)Γ—β‹―Γ—2Γ—1.

We define the factorial of zero to be equal to one; that is, 0=1.

From the definition, it is not difficult to see that, for any integer 𝑛β‰₯1, 𝑛=π‘›π‘›βˆ’1.

In many ways, this is the key property of the factorial and, as we will see, it will be applied time and again to solve problems involving factorials.

Let us practice computing a factorial in our first example.

Example 1: Finding Factorials

Evaluate 4

Answer

Recall that the definition of 𝑛 is the product of all the positive integers less than or equal to 𝑛, or equivalently 𝑛=𝑛×(π‘›βˆ’1)Γ—(π‘›βˆ’2)Γ—β‹―Γ—2Γ—1.

Hence, 4=4Γ—3Γ—2Γ—1=24.

There are two factorials which equal 1, which are 0 and 1. We will use this property of factorials to solve the next example.

Example 2: Solving Problems Involving Factorials of Zero

Find the solution set of π‘›βˆ’26=0.

Answer

We might be tempted to reason as follows: Since π‘›βˆ’26=0, π‘›βˆ’26=0. Hence, 𝑛=26. Unfortunately, this is not the complete answer. Instead, we need to remember that 0=1 and zero is not the only number whose factorial is equal to one. In particular, the factorial of one is also equal to one: 1=1. Hence, to solve π‘›βˆ’26=0, we have to consider both cases: where π‘›βˆ’26=0 and where π‘›βˆ’26=1. Hence, we find that 𝑛=26 and 𝑛=27 are both possible solutions. Therefore, the solution set is {26, 27}.

Most scientific calculators have a button for calculating the factorial of a number. In examples like the one above, it would be completely legitimate to simply use a calculator to evaluate the expressions. However, this is not always possible. In fact, factorials become large so quickly that most calculators are unable to evaluate factorials of numbers larger than 69. However, this does not mean that we are unable to work with them. Instead, using the properties of factorials will enable us to solve problems which involve numbers that are too large for our calculators.

In our next example, we will use properties of factorials to evaluate the given expression involving factorials.

Example 3: Properties of Factorials

Without using a calculator, evaluate the expression 210209βˆ’210.

Answer

Using the following property of the factorial: 𝑛=π‘›π‘›βˆ’1, we see that 210(209)=210

Hence, 210(209)βˆ’210=210βˆ’210=0.

We can also apply this property when working with expressions involving the factorial of an unknown number.

Let us consider an example along this line.

Example 4: Simplifying Expressions Involving Factorials

Simplify 𝑛+2𝑛.

Answer

Using the following property of factorials: π‘Ÿ=π‘Ÿπ‘Ÿβˆ’1,

we can rewrite 𝑛+2=(𝑛+2)𝑛+1.

Applying the same property again, we can write 𝑛+2=(𝑛+2)(𝑛+1)𝑛.

Substituting this in the given expression we have 𝑛+2𝑛=(𝑛+2)(𝑛+1)𝑛𝑛.

Canceling the common terms in the numerator and denominator, we get 𝑛+2𝑛=(𝑛+2)(𝑛+1).

Let us consider an example where we use properties of factorials to solve an equation involving factorials.

Example 5: Using the Properties of Factorials to Solve Problems

Find the value of 𝑛 which satisfies the equation 𝑛+48𝑛+47=65.

Answer

Using the following property of factorials: π‘Ÿ=π‘Ÿπ‘Ÿβˆ’1, we can rewrite 𝑛+48=(𝑛+48)𝑛+47.

Substituting this into the given equation, we have 6=𝑛+48𝑛+47=(𝑛+48)𝑛+47𝑛+47.

Canceling the common factors in the numerator and denominator, we can rewrite this as 65=𝑛+48.

Rearranging gives 𝑛=17.

Let us consider another example where we use properties of factorials to solve an equation involving factorials.

Example 6: Solving Factorial Equations

Find the solution set of 1𝑛+7+1𝑛+8=256𝑛+9.

Answer

We begin by multiplying both sides of the equation by 𝑛+9 which gives 𝑛+9𝑛+7+𝑛+9𝑛+8=256.

Using the following property of factorials: π‘Ÿ=π‘Ÿπ‘Ÿβˆ’1, we can rewrite 𝑛+9=(𝑛+9)𝑛+8 and 𝑛+9=(𝑛+9)(𝑛+8)𝑛+7. Substituting these into the equation in the numerators, we have (𝑛+9)(𝑛+8)𝑛+7𝑛+7+(𝑛+9)𝑛+8𝑛+8=256.

Canceling the common factors in the numerators and denominators, we can rewrite this as (𝑛+9)(𝑛+8)+(𝑛+9)=256.

Expanding the brackets, we have 𝑛+17𝑛+72+𝑛+9=256.

Rearranging, we arrive at the quadratic 𝑛+18π‘›βˆ’175=0.

By factoring, or applying the quadratic formula, we can express this as (𝑛+25)(π‘›βˆ’7)=0.

Hence, 𝑛=βˆ’25 or 𝑛=7. Since factorials are only defined for nonnegative integers, we can discard the solution 𝑛=βˆ’25. Hence, the solution set of the equation is {7}.

Thus far, we have been able to use the properties of factorials to simplify equations and isolate any unknowns as solutions to linear or quadratic equations. However, these techniques will not help us when we need to find an unknown number given its factorial. For this, we use the fact that a factorial is the product of positive integers less than or equal to a particular number. Therefore, given a number, we can successively divide by consecutive positive integers until we are left with an integer. The next example will demonstrate this process.

Example 7: Finding an Unknown Number Given its Factorial

Find the value of 𝑛 such that 𝑛=720.

Answer

Since a factorial is a product of consecutive positive integers, we can divide 720 by consecutive positive integers as follows. Starting with 1: since 7201=720, we can rewrite 720=720Γ—1.

Next we divide 720 by 2 which gives us 7202=360.

Hence, 720=360Γ—2Γ—1.

Dividing 360 by 3 gives 120. Therefore, we can write 720=120Γ—3Γ—2Γ—1.

Similarly, by dividing 120 by 4, we get 30. Hence, 720=30Γ—4Γ—3Γ—2Γ—1.

Finally, dividing 30 by 5, we get 6 which gives 720=6Γ—5Γ—4Γ—3Γ—2Γ—1.

Using this process, we have expressed 720 as a product of the first 6 consecutive integers. Therefore, we have 720=6. We can write this more succinctly as 720=720Γ—1=360Γ—2Γ—1=120Γ—3Γ—2Γ—1=30Γ—4Γ—3Γ—2Γ—1=6Γ—5Γ—4Γ—3Γ—2Γ—1=6.

Hence, our final answer is 𝑛=6.

We finish by looking at another example where we can apply all the techniques we have learned to solve one final factorial problem.

Example 8: Problem-Solving with Factorials

Find the value of 𝑛 such that 𝑛8π‘›βˆ’1=5040.

Answer

First let us consider the value 5β€Žβ€‰β€Ž040. Since we have the product of a factorial and an integer on the left-hand side of the equation, we would like to express 5β€Žβ€‰β€Ž040 as a factorial or as the product of a factorial and another integer. To do this, we can divide it consecutively by the natural numbers as follows: 5040=5040Γ—1=2520Γ—2Γ—1=840Γ—3Γ—2Γ—1=210Γ—4Γ—3Γ—2Γ—1=42Γ—5Γ—4Γ—3Γ—2Γ—1=7Γ—6Γ—5Γ—4Γ—3Γ—2Γ—1=7.

Now we can consider the other side of the equation. Remember that for a positive integer 𝑛𝑛=π‘›π‘›βˆ’1.

Currently, we do not have two consecutive numbers 𝑛 and π‘›βˆ’1 to apply this formula. However, by multiplying and dividing by 8, we can produce two consecutive numbers 8𝑛 and 8π‘›βˆ’1 and apply the formula as follows: 𝑛8π‘›βˆ’1=188𝑛8π‘›βˆ’1=188𝑛.

Therefore, 188𝑛=78𝑛=8Γ—7=8.

Hence, 𝑛=1.

Let us finish by recapping a few important concepts.

Key Points

  • The factorial of a positive integer 𝑛 is defined as the product of all positive integers less than or equal to 𝑛. We write it as 𝑛.
  • The key property of the factorial is that 𝑛=π‘›π‘›βˆ’1. Using this, we can often simplify expressions involving factorials and solve factorial equations.
  • When trying to find an unknown integer given its factorial, we divide by consecutive positive integers.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy