How many 6-digit numbers can be formed using exactly 4 different digits?
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.
If the solution is good, the 'please upvote' statement would be unnecessary so it's best not to include it :)
(I've upvoted)
how did you cancel the zeros conditions....that is how did you land up on the conclusion that it is 9/10th of the original value... please explain
1 0 9 ⋅ ( 1 0 4 ) ⋅ 4 ! ⋅ { 6 4 } = 1 0 9 ⋅ 2 1 0 ⋅ 2 4 ⋅ 6 5 = 2 9 4 ′ 8 4 0
Explanation:
If the 4 digits are given, then, there is { 6 4 } = 6 5 ways to display them (see Stirling numbers of the second kind for formula or table of values).
To choose the digits and order them, there's ( 4 1 0 ) ⋅ 4 ! = 2 1 0 ⋅ 2 4 = 5 0 4 0 ways. But we can't have leading 0's, so we either:
That makes ( 5 0 4 0 − 5 0 4 ) ⋅ 6 5 = 2 9 4 ′ 8 4 0 .
So you have treated numbers as boxes and place values as objects. Quite creative!!!
See, m!S(n,m) is the number of on to or surjective functions from a set with n number of elements to a set with m number of elements.
I used a slightly different approach than Parth Lohomi
The number of ways 6 different blank spaces (different cause order matters) to 4 distinct digits is same as the number of onto functions from set off blank spaces to the digits,
hence we have
using inclusion exclusion principle
no. of ways as 1 0 C 4 ∑ ( − 1 ) r ( 4 C r ) ( 4 − r ) 6 ( s u m m a t i o n i s f r o m r = 0 t o 4 ) = 3 2 7 6 0 0
Now however to remove the ones where first blank space is mapped to 0,
we subtract this case, let the first blank be a, it may be mapped to 0, then the remaining may or may not be mapped to 0 (as its only onto not one one necessarily)
So for the remaining elements we need to find the functions where 0 may or may not be mapped (by someone other than a ) which is simply the sum of the number of onto functions from 5 elements to 4 and from 5 elements to 3 (that is , maybe= yes+no)
so we have
9 C 3 ( ∑ ( − 1 ) r ( 4 C r ) ( 4 − r ) 5 + ∑ ( − 1 ) r ( 3 C r ) ( 3 − r ) 5 ) = 3 2 7 6 0
subtracting we have 294840,
Thanks for the problem ,this has thoroughly cleared my concept about combinatorics :)
We let the four digits be w,x,y and z. The number can be in the form wwxxyz or wwwxyz. We first find the number of ways to select 4 digits: 1 0 C 4 = 2 1 0 w a y s
Then the number of ways to select the digits to be repeated in each case: 4 C 2 = 6 and 4 C 1 = 4 .
Then the number of ways of arrangements in each case: 2 ! 2 ! 6 ! = 1 8 0 and 3 ! 6 ! = 1 2 0
no. of ways = 1 0 C 4 ( 4 C 2 ) ( 2 ! 2 ! 6 ! ) + 1 0 C 4 ( 4 C 1 ) ( 3 ! 6 ! ) = 2 1 0 ( 6 ) ( 1 8 0 ) + 2 1 0 ( 4 ) ( 1 2 0 ) = 2 2 6 8 0 0 + 1 0 0 8 0 0 = 3 2 7 6 0 0
In the above computation, we have used all the 1 0 digits including 0 in selecting the four distinct digits. That means that some of the numbers starts with 0 . The first digit of the number can be filled with any of the 1 0 digits equally. As the digits are treated on an equal footing, we multiply the result by 1 0 9 . So
total number of ways = 3 2 7 6 0 0 ( 1 0 9 ) = 2 9 4 8 4 0
Problem Loading...
Note Loading...
Set Loading...
Let the four different digits be a, b, c, d, then the number can be of two forms i.e. aabbcd or aaabcd.
So to calculate the total numbers; first we need to find the number of ways to select 4 digits (which is C(10, 4)); then number of ways to select the digits to be repeated in each case (which is C(4,2) and C(4,1) respectively); and then the number of ways of arrangement in both the cases (which is 6!/(2!)2 and 6!/3! respectively).
Hence the number of ways to form such 6-digit numbers become = C(10, 4)[C(4, 2)6!/(2!)2 + C(4, 1)6!/3!] = 10 9 8 7 5*13 = 327600 .
But is this the final answer? .....certainly not!!
See in the initial selection for the digits, we have used all 10 digits (including 0) for selecting the four distinct digits. That means in the above arrangements there will be some numbers which'd be starting with zero. Now thinking alternately, first place of the number can be filled with any 10 digits equally. So removing the cases starting with zero, we are left with (9/10) of previously calculated result.
Thus the answer will be 9 9 8 7 5*13 = 294840