Find the number of six-digit numbers that can be formed with the digits 1, 2, 3, and 4, if all the four numbers are to appear at least once.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Did the same! Nice!
You must have calculated it like:
4 . ( 6 3 ) . 3 ! + 6 . ( 6 2 ) . ( 4 2 ) . 2 !
We regarded as 121 and 112 as same before counting the number of ways because121 can be arranged in 3 ways while 112 can also be arranged in 3 ways. In both the cases, we will get the same formations. Thus, we didn't count it double time!
+1! Nice way :) I did it using complements cuz it was rather confusing for me working out all the repetitions :)
'!' sign is missing in 6!/3!.
The total number of permutations without the constraint that the permutation should have all digits present is: 4^6
Let us take the complementary set:
Consisting of exactly one digit: 4 Consisting of exactly two digits: (4,2) * (2^6-2) Consisting of exactly three digits: (4,3) * (3^6-3 * (2^6-2) -3)
Hence the answer is:
4^6 - 4 - (4,2) * (2^6-2) - (4,3) * (3^6-3 * (2^6-2) -3) = 1560
You should explain how you calculate those which consist of exactly N digits.
Note that if you use * as a multiplication sign, leave empty spaces with the next character, otherwise wise we will interpret it as markdown syntax.
Consider the first four numbers. There are only 3 possibilities:
Any less would mean there could not be four numbers total.
Now simply add up the totals for each possibility:
3 8 4 + 1 0 0 8 + 1 6 8 = 1 5 6 0
There are two cases here. First, there is a digit that is repeated three times and the other three digits are written once in a number. Second, there are two digits which is repeated twice and the other two digits are repeated just once in a number.
First case: Let one of the number is 1 1 1 2 3 4
Each of digit can be repeated maximum three times in a number, so there is ( 4 1 ) = 4 ways to select the digit that is repeated three times in a number. Thus, we can form 4 × 3 ! × 1 ! × 1 ! × 1 ! 6 ! = 4 8 0 numbers.
Second case: Let one of the umber is 3 3 4 4 1 2
There are two digits can be repeated twice on a number, so there is ( 4 2 ) = 6 ways to select the digit that is repeated twice in a number. So, we have 6 × 2 ! × 2 ! × 1 ! × 1 ! 6 ! = 1 0 8 0 numbers.
Thus, the total number can be formed is 4 8 0 + 1 0 8 0 = 1 5 6 0 numbers.
Problem Loading...
Note Loading...
Set Loading...
q1
:p