# Factorial notation

0/0
0/19
##### Examples
###### Lessons
1. How many ways are there to arrange 4 different books side by side on a bookshelf?
1. factorial notation: n! = n (n-1) (n-2) (n-3) (n-4) . . . . . (5) (4) (3) (2) (1)
by definition : 0! = 1
1. Evaluate: 5!
2. Evaluate: $\frac{{7!}}{{5!}}$
3. Simplify: $\frac{{\left( {n + 3} \right)!}}{{n!}}$
4. Simplify: $\frac{{\left( {n - 1} \right)!}}{{\left( {n + 2} \right)!}}$
5. Simplify: $\frac{{\left( {n + 1} \right)!\;\;\left( {n - 3} \right)!}}{{{{(n!)}^2}}}$
6. Solve: $\frac{{n!}}{{\left( {n - 2} \right)!\;\;3!}} = 7$
2. arrangement of words "without repititions" = n!
Determine the number of different arrangements of all the letters in the following words:
1. DOG
2. MATH
3. COMPUTER
3. arrangement of words "with repititions" = $\frac{{n!}}{{\left( {{1^{st}}\;repetition} \right)!\;\;\;\left( {{2^{nd}}\;repetition} \right)!\;\;\;\left( {{3^{rd}}\;repetition} \right)!\; \ldots ..}}$
Determine the number of different arrangements of all the letters in the following words:
1. ABC vs ABB
3. BANANA
4. REPETITION
4. arrangement with restrictions: must deal with the restrictions first!
1. Determine the number of different arrangements of all the letters in the word: COMPUTER
(i) if there are no restrictions
(ii) if the vowels must be together
(iii) the vowels must not be together
2. i) How many ways are there to arrange 3 Math books (Math 10, Math 11, Math 12), 2 physics books (Phys 11, Phys 12), and 5 English (Eng 8, Eng 9, Eng 10, Eng 11, Eng 12) on a bookshelf?
ii) What if the books on each subject must be kept together?
5. seating arrangement
1. How many ways can 4 girls and 4 boys sit in a row, if:
i) they can sit anywhere?
ii) all the girls must sit together, and all the boys must sit together?
iii) all the girls must sit together, while the boys can pick their own seats?
iv) girls and boys alternate?
2. There are 3 couples, and they need to sit together. How many different ways can these 3 couples sit in a row?
3. There are 7 people A, B, C, D, E, F, and G sitting in a row. How many different seating arrangements are there, if:
i) A must be to the left of B, but they do not need to sit together?
ii) A and B must sit together?
iii) A and B cannot sit together?
6. Seating arrangements are considered to be different only when the positions of the people are different relative to each other.
How many seating arrangements are possible for 7 people sitting around a round table?
###### Free to Join!
StudyPug is a learning help platform covering math and science from grade 4 all the way to second year university. Our video tutorials, unlimited practice problems, and step-by-step explanations provide you or your child with all the help you need to master concepts. On top of that, it's fun - with achievements, customizable avatars, and awards to keep you motivated.
• #### Easily See Your Progress

We track the progress you've made on a topic so you know what you've done. From the course view you can easily see what topics have what and the progress you've made on them. Fill the rings to completely master that section or mouse over the icon to see more details.
• #### Make Use of Our Learning Aids

###### Practice Accuracy

See how well your practice sessions are going over time.

Stay on track with our daily recommendations.

• #### Earn Achievements as You Learn

Make the most of your time as you use StudyPug to help you achieve your goals. Earn fun little badges the more you watch, practice, and use our service.
• #### Create and Customize Your Avatar

Play with our fun little avatar builder to create and customize your own avatar on StudyPug. Choose your face, eye colour, hair colour and style, and background. Unlock more options the more you use StudyPug.

## Factorial notation

#### What is a factorial?

A factorial is the multiplication of a number with all of those positive numbers below it. In other words, when you want to compute the factorial of a number, you multiply this number times all of the numbers smaller than it up to 1.

This up to 1 is very important since the factorial of a negative number does not exist, and the factorial of 0 is defined as 1. Therefore, the numbers in a factorial are all positive integers. Consequently, the formal factorial definition says that a factorial is the product of a positive integer with all the consecutive positive integers that have a lower value than itself.
Mathematically speaking, the factorial of a number is defined as:

$n! =(n)(n-1)(n-2)(n-3)... (2)(1)$

And so, the factorial notation of a number is done just by applying an exclamation mark to its right. Something important to remember is that since the 0 factorial is defined as 1 (0! = 1), then it means that the zero factorial is equal to the factorial of 1.

#### Combinatorics problems using factorials

On the next examples we will get to see how is that the factorial notation of a multiplication is useful when working in combinatorics problems.

#### Example 1

How many ways are there to arrange 4 different books side by side on a bookshelf?

For this case we have four different books which we will define as a math book, a physics book, a chemistry book and a history book. And so, the setting is that we have four books that can be arranged in four different positions side by side as seen in the next figure:

If you think about it, the first position has 4 different books as a possibility to be there, and we can pick any of them. And so, we pick one book from the four to be in the first position, and continue to the next position. For the second position, we are left with 3 possible books, we pick one and continue to the next position; on the third position we have 2 possible books left, we pick one and continue; in the last position (4th position) we have only one book left that can be there, and so our arrangement and the process we just explained can be seen in the next figure:

Thus, following the fundamental counting principle we know that we have to multiply the possible outcomes of each category to obtain a total of 24 possible ways in which the books can be arranged.

If you notice, the multiplication resulted from the application of the fundamental counting principle is the same as the factorial of four! And so, we can clearly see how the factorial notation has been designed to help us out in abbreviating what can get to be a large multiplication into a simple expression such as: 4!

#### Example 2

Using what we have learned of factorial notation:
$n! = n (n-1) (n-2) (n-3) (n-4) . . . . . (5) (4) (3) (2) (1)$
And $0! = 1$ (zero factorial) by definition.

a) $\quad$ Evaluate: 5!
This problem is very simple, you just have to compute the multiplication required to obtain the factorial of 5, using the factorial formula depicted in equation 1 we have that:

$5! = 5 \times 4 \times 3 \times 2 \times 1 =120$

b) $\quad$ Evaluate: $\large \frac{7!}{5!}$
On this case you will see that when dividing factorials, if the factorial in the numerator is bigger than the one in the denominator, several of the factors above will be cancelled with those below and you can simplify the operation by computing the multiplication of the factors left:

$\large \frac{7!}{5!} = \frac{7\times6\times5\times4\times3\times2\times1}{5\times4\times3\times2\times1} =$ $7\times6 = 42$

c) $\quad$ Simplify: $\large \frac{(n \, + \, 3)!}{n!}$
Another example of a factorial being divided by a smaller one. Notice how the factorial in the denominator cancels out most of the factors in the factorial above, and so, the expression gets simplified:

$\large \frac{(n\,+\,3)!}{n!} = \frac{(n\,+\,3)(n\,+\,2)(n\,+\,1)(n)(n\,-\,1)(n\,-\,2)(n\,-\,3)(n\,-\,4)...}{(n)(n\,-\,1)(n\,-\,2)(n\,-\,3)(n\,-\,4)...} =$

$(n+3)(n+2)(n+1)$

$(n+3)(n+2)(n+1)=(n^{2}+2n+3n+6)(n+1)=(n^{2}+5n+6)(n+1)$

$(n^{2}+5n+6)(n+1)=n^{3}+n^{2}+5n^{2}+5n+6n+6=n^{3}+6n^{2}+11n+6$

therefore:

$\large \frac{(n\,+\,3)!}{n!}$ $= (n+3)(n+2)(n+1)=n^{3}+6n^{2}+11n+6$

d) $\quad$ Simplify: $\large \frac{(n \, - \, 1)!}{(n\,+\,2)!}$
On this case we have two factorials dividing each other, but the highest one is found in the denominator, which means that it will cancel the factors contained in the numerator to produce an expression such as:

$\large \frac{(n\,-\,1)!}{(n\,+\,2)!} = \frac{(n\,-\,1)(n\,-\,2)(n\,-\,3)(n\,-\,4)...}{(n+2)(n+1)(n)(n-1)(n-2)(n-3)(n-4)...} = \frac{1}{(n+2)(n+1)(n)}$

$\large \frac{1}{(n+2)(n+1)(n)} = \frac{1}{(n+2)( n^{2}+n)} = \frac{1}{n^{3}+n^{2}+2n^{2}+n} = \frac{1}{n^{3}+3n^{2}+n}$

therefore:

$\large \frac{(n\,-\,1)!}{(n\,+\,2)!} = \frac{1}{(n+2)(n+1)(n)} = \frac{1}{n^{3}+3n^{2}+n}$

e) $\quad$ Simplify: $\large \frac{(n \, + \, 1)! \, (n\,-\,3)!}{(n!)^{2}}$
For this case we combine what we have seen in parts c) and d) since this particular division of factorials includes multiplication of factorials in both the numerator and denominator. Therefore, you can factor out the whole expression into two divisions of factorials being multiplied.
This particular operation can be done in many ways, let us show you one of them (you can practice at home by working the operations in different order).

$\large \frac{(n\,+\,1)! (n\,-\,3)!}{(n!)^{2}} = \frac{(n\,+\,1)! \, \times \, (n\,-\,3)!}{n! \, \times \, n!} = \frac{(n\,+\,1)!}{n!} \times \frac{(n\,-\,3)!}{n!}$

$\large \frac{(n\,+\,1)(n)(n\,-\,1)(n\,-\,2)(n\,-\,3)...}{(n)(n\,-\,1)(n\,-\,2)(n\,-\,3)...} \, \times \, \frac{(n\,-\,3)(n\,-\,4)(n\,-\,5)...}{(n)(n\,-\,1)(n\,-\,2)(n\,-\,3)(n\,-\,4)(n\,-\,5)...} = \frac{n\,+\,1}{1} \, \times \, \frac{1}{(n)(n\,-\,1)(n\,-\,2)}$

$\large \frac{n\,+\,1}{1} \, \times \, \frac{1}{(n)(n\,-\,1)(n\,-\,2)} = \frac{n\,+\,1}{(n)(n\,-\,1)(n\,-\,2)}$

therefore:

$\large \frac{(n\,+\,1)! (n\,-\,3)!}{(n!)^{2}} =\frac{n\,+\,1}{(n)(n\,-\,1)(n\,-\,2)}$

f) $\quad$ Solve: $\large \frac{n!}{(n\,-\,2)! 3!}$ $=7$
In order to solve this particular factorial equation we pass the 3 factorial in the denominator to the other side of the equation by multiplying it in both sides, and so:

$\large \frac{n!}{(n\,-\,2)! 3!}$ $= 7 \,$$\,$ $\large \frac{n!}{(n\,-\,2)!}$ $= 7(3!)=7(3 \times 2 \times 1)=42$

And now, we can just simplify the division of factorials on the left hand side in the same way as we have done it before:

$\large \frac{n!}{(n\,-\,2)!} = \frac{(n)(n\,-\,1)(n\,-\,2)(n\,-\,3)(n\,-\,4)...}{(n\,-\,2)(n\,-\,3)(n\,-\,4)...} =$ $(n)(n\,-\,1) = 42$

Once the division of factorials has been simplified we obtain the next quadratic equation:

$(n)(n-1)=n^{2}-n=42 \;$$\; n^{2} -n-42=0$

With this, we can use the quadratic formula and solve for $n$. Since the quadratic formula is defined as:

$x =$ $\large \frac{-b\pm\sqrt{b^{2}-4ac}}{2a}$ $\;$when$\; ax^{2} + bx + c = 0$

On this case we have that $\, x = n, \, a=1, \, b=-1, \, c = -42$
Therefore we solve for n in the following manner:

$n =$$\large \frac{-(-1)\pm\sqrt{(-1)^{2}-4(1)(-42)}}{2(1)} = \frac{1\pm\sqrt{1+168}}{2} = \frac{1\pm\sqrt{169}}{2} = \frac{1\pm13}{2}$

And so, we have two options for $n$:

$n =$ $\large \frac{14}{2}$ $= 7 \;$or$\; n =$ $\large \frac{-12}{2}$ $= - 6$

Since the factorial of negative numbers does not exist, and the original expression to solve in this problem contains a term of $n!$ in the numerator, $n$ must be equal to 7; putting $n$ = -6 would mean that we would have a (-6)! term in the numerator of the original expression, which is undefined! Therefore the answer is $n$ = 7

#### Example 3

In this example we take a look at the arrangement of letters in a word "without repetitions", which means to compute the $n!$, where $n$ equals the number of letters in the word.

arrangement of words without repetitions = $n!$

This process is the same that what we saw in the first example with the 4 different books being arranged side by side, you cannot repeat a book, just as in here the condition is that you do not repeat a letter. With all of this in mind, determine the number of different arrangements of all the letters in the following words:

a) $\quad$ DOG
Total amount of letters = 3, therefore $n$ = 3, and the total amount of different positions in which these letters can be arranged is equal to 3! = (3)(2)(1) = 6

b) $\quad$ MATH
Total amount of letters = 4, therefore $n$ = 4, and the total amount of different positions in which these letters can be arranged is equal to 4! = (4)(3)(2)(1) = 24

c) $\quad$ COMPUTER
Total amount of letters = 8, therefore $n$ = 8, and the total amount of different positions in which these letters can be arranged is equal to 8! = (8)(7)(6)(5)(4)(3)(2)(1) = 40,320

These examples were simple because these are words which have all distinct letters (without repetition), meaning that you can simply use the factorial of the amount of letters that you have in each case to obtain the different ways in which you can arrange them. The next example represents a case in which the words contain repeated letters, see how the difficulty level rises:

#### Example 4

On this example we take a look at the arrangement of letters in a word "with repetitions", which means that letters within the given word are not all distinct.
The equation that produces the total amount of ways in which the letters of these words with repetitions can be arranged goes as:

$\frac{arrangement\, of \,words \,with\, repetitions \; n!} {(1st\, repetition)! \, (2nd \,repetition)! \,(3rd\, repetition)! ... }$

Where $n$ equals the total number of letters in the word, and the repetitions mean how many times a letter repeats itself. For example if you have 5 letters and one repeats 3 times, then you would have that $n$ = 5 and the first repetition is 3! (there are no more repetitions in this case, and so, the equation for the arrangements would be simply: 5!/3!.

With that in mind, determine the number of different arrangements of all the letters in the following words:

a) $\quad$ ABC vs ABB
In this case, both ABC and ABB have $n$ = 3, therefore, for ABC we simply have that:

arrangement of words without repetitions $\, = n! = 3! =3 \, \times \, 2 \, \times \, 1 = 6$

For ABB we have that the letter B repeats twice, and so:

arrangement of words with repetitions $\, \large \frac{3!}{2!} = \frac{3\,\times\, 2\,\times\, 1}{2\,\times\,1} =$ $3$

b) $\quad$ Canada
The total arrangements possible with the letters in the word Canada are calculated as follows (where $n$ = 6):

arrangement of words with repetitions

$\large = \frac{6!}{3!} = \frac{6\,\times\, 5 \,\times \, 4 \, \times \, 3 \, \times \, 2\, \times \, 1}{3 \, \times \, 2\, \times \, 1} =$ $6 \times 5 \times 4 = 120$

c) $\quad$ BANANA
For this case $n$ =6 and you have two repetitions, letter N repeats twice, and letter A repeats trice; therefore:

arrangement of words with repetitions

$\large = \frac{6!}{2! \, \cdot \, 3!} = \frac{6\,\times\, 5 \,\times \, 4 \, \times \, 3 \, \times \, 2\, \times \, 1}{(2\, \times \, 1)(3 \, \times \, 2\, \times \, 1)} =$ $6 \times 5 \times 2 = 60$

d) $\quad$ REPETITION
For this case $n$ = 10 and you have three repetitions: the letters E, T and I repeat twice each, therefore:

arrangement of words with repetitions $= \large \frac{10!}{2!\cdot 2!\cdot 2!}$

$\large = \frac{10!}{2!\cdot 2!\cdot 2!} = \frac{10\,\times\,9\,\times\,8\,\times\,7\,\times\,6\,\times\, 5 \,\times \, 4 \, \times \, 3 \, \times \, 2\, \times \, 1}{(2\, \times \, 1)(2 \, \times \, 1) (2 \, \times \, 1)} =$ $10 \times 9 \times 8 \times 7 \times 6 \times 5 \times 4 \times 3 = 453,600$

#### Example 5

For this problem example we will be taking a look at arrangement with restrictions, meaning that even when you have a word with all distinct letters, there may be certain conditions imposed on the arrangements of its words and so, these conditions (or restrictions) must be dealt with first.

Determine the number of different arrangements of all the letters in the word: COMPUTER

1. $\quad$ if there are no restrictions
In this case, we do not have repetitions and no restrictions, therefore, the arrangements are easy to calculate: just calculate factorial products for the total number of letters in the word. Since there are 8 letters in the word computer, then the total possible arrangements are 8! = 40,320.

2. $\quad$ if the vowels must be together
We have 3 vowels (O, U and E) in the word COMPUTER, and our restriction for this case is that all of them will be written together. So how many arrangements of the word meet this restriction?

Let us think on the word COMPUTER, take the three vowels out: O,U,E and think of them as a single unit to have: C, M, P, T, R, {O, U, E} as the six components of the word.
Then, we use the same logic used in example one (about arranging books in different order side by side) and think of the letters in the word computer as a unit (just like each book in example one) to be arranged in different positions side by side, except for the vowels which are all merged together in a single unit. Look at the next figure to see what we are talking about:

So, in this case in order to obtain the total amount of different arrangements that can happen when applying the given restriction (having all the vowels together) can be obtained by calculating the different ways in which the six boxes can be arranged, times the different ways in which the vowels can be arranged within their box. Therefore:

total different arrangements = $\, 6! \times 3! = (720)(6)=4,320$

Where 6! In equation 18 represents the total amount of arrangements of the 6 boxes, and 3! Represents the total amount of arrangements the vowels can have within their own box.

On the videos for this lesson you will find a few more examples on this topic, so dont forget to watch all of the video lessons.

***

To finalize this lesson we recommend you to visit the next article on factorials which contains a few examples and a different arrangement on how the factorial product is written (remember the order of the factors does not alter the product in a multiplication, and so, a factorial product can be written in different orders).

This is it for our lesson of today, see you in the next one!