Dare to solve?

How many 6-digit numbers can be formed using exactly 4 different digits?


The answer is 294840.

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.

4 solutions

Parth Lohomi
Nov 22, 2014

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

If the solution is good, the 'please upvote' statement would be unnecessary so it's best not to include it :)

(I've upvoted)

Joel Tan - 6 years, 6 months ago

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

manish bhargao - 6 years, 3 months ago
Laurent Shorts
Feb 10, 2017

9 10 ( 10 4 ) 4 ! { 6 4 } = 9 10 210 24 65 = 29 4 840 \dfrac{9}{10}·\begin{pmatrix}10\\4\end{pmatrix}·4!·\begin{Bmatrix}6\\4\end{Bmatrix}=\frac{9}{10}·210·24·65=\boxed{294'840}

Explanation:

If the 4 digits are given, then, there is { 6 4 } = 65 \begin{Bmatrix}6\\4\end{Bmatrix}=65 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 ( 10 4 ) 4 ! = 210 24 = 5040 {10 \choose 4}·4!=210·24=5040 ways. But we can't have leading 0's, so we either:

  • subtract 1 10 \frac{1}{10} of them (i.e. 504), as that's the probability the number begins with 0 (each digit as the same probability to begin the sequence);
  • subtract the ways to start with 0 and pick and order 3 other digits, that is ( 9 3 ) 3 ! = 84 6 = 504 {9 \choose 3}·3!=84·6=504 ways.

That makes ( 5040 504 ) 65 = 29 4 840 (5040-504)·65=\boxed{294'840} .

So you have treated numbers as boxes and place values as objects. Quite creative!!!

Prayas Rautray - 3 years, 9 months ago

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.

Jitarani Nayak - 3 years, 6 months ago
Mvs Saketh
Feb 21, 2015

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 10 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 ) = 327600 10C4\sum { (-1)^{ r } } (4Cr){ (4-r) }^{ 6 }\quad (summation\quad is\quad from\quad r=\quad 0\quad to\quad 4)\quad =\quad 327600

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 ) = 32760 9C3(\sum { (-1)^{ r } } (4Cr){ (4-r) }^{ 5 }\quad +\quad \sum { (-1)^{ r } } (3Cr){ (3-r) }^{ 5 })\quad =\quad 32760

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: 10 C 4 = 210 10C4=210 w a y s ways

Then the number of ways to select the digits to be repeated in each case: 4 C 2 = 6 4C2=6 and 4 C 1 = 4 4C1=4 .

Then the number of ways of arrangements in each case: 6 ! 2 ! 2 ! = 180 \frac{6!}{2!2!}=180 and 6 ! 3 ! = 120 \frac{6!}{3!}=120

no. of ways = 10 C 4 ( 4 C 2 ) ( 10C4(4C2)( 6 ! 2 ! 2 ! ) \frac{6!}{2!2!}) + + 10 C 4 ( 4 C 1 ) ( 10C4(4C1)( 6 ! 3 ! ) \frac{6!}{3!}) = 210 ( 6 ) ( 180 ) 210(6)(180) + + 210 ( 4 ) ( 120 ) = 226800 + 100800 = 327600 210(4)(120)=226800+100800=327600

In the above computation, we have used all the 10 10 digits including 0 0 in selecting the four distinct digits. That means that some of the numbers starts with 0 0 . The first digit of the number can be filled with any of the 10 10 digits equally. As the digits are treated on an equal footing, we multiply the result by 9 10 \frac{9}{10} . So

total number of ways = 327600 ( 327600( 9 10 ) = 294840 \frac{9}{10})=294840

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...