tabsang wrote:GMATGuruNY wrote:Here's an alternate approach.
Which 2 positions in the 4-digit integer can contain the same digit?
Number of combinations of 2 that can be formed from 4 choices = 4C2 = 6.
If we disregard that the thousands digit cannot be 0, how many options for this pair?
10. (Any digit 0-9.)
How many options for the 3rd digit?
9. (Any digit 0-9 other than the digit used in the pair above.)
How many options for 4th digit?
8. (Any digit 0-9 other than the 2 digits already used.)
Multiplying the options above:
6*10*9*8 = 4320.
A fraction of these 4320 options are not allowed because they put 0 in the thousands place.
Since each of the 10 digits has the same probability of appearing in the thousands place, 1/10 of the 4320 options will put 0 in the thousands place.
Thus, 9/10 of the 4320 options are viable:
(9/10)*4320 = 3888.
Awesome.
Loved the alternate approach

Hey Mitch,
I went over the solution again and I have a doubt.
I get the 4C2=6 part.
I was wondering if disregarding that 0 cannot be in the thousand's place is necessary.
Can't we still arrive at the solution even if we considered that 0 can't be in the thousand's place?
That way, we'll be saved the 1/10, 9/10 trouble.
For eg:
***Copy-paste from your prev. response, albeit with modifications***
Which 2 positions in the 4-digit integer can contain the same digit?
Number of combinations of 2 that can be formed from 4 choices = 4C2 = 6.
How many options for the thousand's place?
9. (Any digit 1-9.)
How many options for the 2nd (or 3rd) digit?
9. (Any digit 0-9 other than the digit used in the pair above.)
How many options for 3rd (or 4th) digit?
8. (Any digit 0-9 other than the 2 digits already used.)
Multiplying the options above:
6*9*9*8 = 3888.
I tried applying the same logic for a 5 digit number with 4 distinct digits:
Which 2 positions in the 5-digit integer can contain the same digit?
Number of combinations of 2 that can be formed from 5 choices = 5C2 = 10.
And, using the same strategy as the one used for the 4-digit problem, we get
10*9*9*8*7
Do let me know your thoughts.
Cheers,
Taz