How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Learning Outcomes

  • Compute a conditional probability for an event
  • Use Baye’s theorem to compute a conditional probability
  • Calculate the expected value of an event

We can use permutations and combinations to help us answer more complex probability questions.

A 4 digit PIN number is selected. What is the probability that there are no repeated digits?

In a certain state’s lottery, 48 balls numbered 1 through 48 are placed in a machine and six of them are drawn at random. If the six numbers drawn match the numbers that a player had chosen, the player wins $1,000,000.    In this lottery, the order the numbers are drawn in doesn’t matter. Compute the probability that you win the million-dollar prize if you purchase a single lottery ticket.

In the state lottery from the previous example, if five of the six numbers drawn match the numbers that a player has chosen, the player wins a second prize of $1,000. Compute the probability that you win the second prize if you purchase a single lottery ticket.

The previous examples are worked in the following video.

Compute the probability of randomly drawing five cards from a deck and getting exactly one Ace.

Compute the probability of randomly drawing five cards from a deck and getting exactly two Aces.

View the following for further demonstration of these examples.

Birthday Problem

Let’s take a pause to consider a famous problem in probability theory:

Suppose you have a room full of 30 people. What is the probability that there is at least one shared birthday?

Take a guess at the answer to the above problem. Was your guess fairly low, like around 10%? That seems to be the intuitive answer (30/365, perhaps?). Let’s see if we should listen to our intuition. Let’s start with a simpler problem, however.

Suppose three people are in a room.  What is the probability that there is at least one shared birthday among these three people?

Suppose five people are in a room.  What is the probability that there is at least one shared birthday among these five people?

Suppose 30 people are in a room.  What is the probability that there is at least one shared birthday among these 30 people?

The birthday problem is examined in detail in the following.

If you like to bet, and if you can convince 30 people to reveal their birthdays, you might be able to win some money by betting a friend that there will be at least two people with the same birthday in the room anytime you are in a room of 30 or more people. (Of course, you would need to make sure your friend hasn’t studied probability!) You wouldn’t be guaranteed to win, but you should win more than half the time.

This is one of many results in probability theory that is counterintuitive; that is, it goes against our gut instincts.

Suppose 10 people are in a room. What is the probability that there is at least one shared birthday among these 10 people?

When we hear the word "combination" in our daily life, we immediately think about the collection of things in the form of a set or a group. For instance, if anyone says that my bowl has a combination of apples, carrots, and bananas, then we immediately think that the bowl has three items. We are not concerned with the order in which these three things were put in the bowl.

In mathematics, the combination means the number of ways in which different objects are combined to form a set. The order of elements is not important in a combination. We always study combination with permutation in mathematics because there are many similarities between these two terms. The primary difference between the combination and permutation is that the order matters in permutation while it does not matter in combination. In other words, we can say that the permutation is an ordered combination.

You have already read an example of a simple combination above when three things are put in a bowl. Now, let us consider another scenario.

Harry wants to make a pin code by choosing 4 digits from the set of first five whole numbers (0,1,2,3,4). Suppose his chosen pin code is 4013. Can he rearrange the digits as 3014 or 0143 etc.?

Of course not, the order of the digits is important. If the order of the digits is changed, then the pin code will not work. It means that the selection of code from the first five whole numbers is an example of the permutation.

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

The best Maths tutors available

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Types of Permutations

There are two types of permutations:

  • Permutations with repetition
  • Permutations without repetition

In this article, we will specifically discuss permutation with repetition.

We know that in the permutations, the order of elements is important. Permutations with repetition mean we can select one item twice. The formula for computing the permutations with repetitions is given below:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Here:

n = total number of elements in a set

k = number of elements selected from the set

Consider the following example:

From the set of first 10 natural numbers, you are asked to make a four-digit number. How many different permutations are possible?

Here, first, we need to determine whether we can choose a digit twice or not. We can have four-digit numbers such as 1000, 1002, 3032, and 4044. In all these numbers, one digit is repeated twice or thrice. Therefore, it means that it is an example of permutations with repetition.

The total number of elements in a set is 10 and the number of digits we want to select from this set is 4. Therefore, we will get permutations by substituting the values in the following formula:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, 10000 permutations are possible if we want to make a four-digit number from the set of the first 10 natural numbers.

Sometimes we are given a problem in which the identical items of type 1 are repeated  "p" number of times, type 2 are repeated "q" number of times, type 3 are repeated "r" number of times, and so on. The question arises what shall we do in this case? Well, the answer is simple. There is a separate formula to compute permutations in such problems.

Since the items are repeated, therefore such scenarios are also examples of permutations with repetition. The formula that should be used while computing the permutations in such cases is given below:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Let us solve the following example through the above formula to make the whole concept clearer.

How many eight-digit numbers can be formed with the numbers 2, 2, 2, 3, 3, 3, 4, 4?

Here, n = 8, p = 3, q = 3, and r = 2.

In this example, the order of elements matter, and digits are repeated.  We will substitute the above values in the formula below:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, 560 permutations are possible.

Let us solve some more examples below:

Example 1

In how many ways can the alphabets of the word EXCELLENT  be arranged?

Solution

Total number of elements in the word = n = 9

E is repeated three times, hence p = 3

L is repeated 2 times, hence q = 2

Substitute these values in the formula below to get the number of ways in which the letters of this word can be arranged:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, the letters in the word EXCELLENT can be arranged in 30240 ways.

Example 2

A ship must raise eight flags at one time (two red, two blue, and four green). How many different flag combinations can be raised at a time?

Solution

Here:

The total number of flags = n = 8

Number of red flags = p = 2

Number of blue flags = q = 2

Number of green flags = r = 4

This is an example of permutation with repetition because the elements of the set are repeated and their order is important.

Put the above values in the formula below to get the number of permutations:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, flags can be raised in 420 ways.

Example 3

John owns six-colored pair of shoes (two red, two blue and two black). He wants to put all these pairs of shoes on the shoe rack. How many different arrangements of shoes are possible?

Solution

Here:

The total number of pair of shoes = n = 6

Number of red shoes = p = 2

Number of blue shoes = q = 2

Number of back shoes = r = 2

This is an example of permutation with repetition because the elements are repeated and their order is important.

Put the above values in the formula below to get the number of permutations:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, shoes can be arranged on the shoe rack in 90 ways.

In how many ways the alphabets of the word ELECTRIC can be arranged?

Solution

Total number of elements in the word = n = 8

E is repeated three times, hence p = 2

C is repeated 2 times, hence q = 2

Substitute these values in the formula below to get the number of ways in which the letters of this word can be arranged:

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, the letters in the word ELECTRIC can be arranged in 10080 ways.

Example 5

A person has to choose three-digits from the set of following seven numbers to make a three-digit number.

{1, 2, 3, 4, 5, 6, 7}

How many different arrangements of the digits are possible?

Solution

A three-digit number can have 2 or three identical numbers. Similarly, in a number, the order of digits is important.

It is given that the person can select 3 digits from the set of 7 numbers. Hence, n = 7 and k = 3. Substitute these values in the formula below to get the number of possible arrangements.

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

How many four digit numbers can be formed with the digits 1,2 3 4 5 6 when a digit may be repeated any number of times in any arrangement?

Hence, 343 different arrangements are possible.