distinct

This topic has expert replies
Junior | Next Rank: 30 Posts
Posts: 13
Joined: Tue Jan 21, 2014 2:36 am
Location: India
GMAT Score:720

by vinitkhicha » Mon Nov 10, 2014 6:48 am
GMATGuruNY wrote:
goyalsau wrote:Let S be the set of all the two-digit natural numbers with distinct digits. In how many ways can the ordered pair (P, Q) be selected such that P and Q belong to S and have at least one digit in common?



4032

2720

2439

2529

2448
Number of integers in S:
Tens digit can be any digit 1 through 9 = 9 choices.
Units digit can be any digit 0 though 9, excluding the digit used for the tens digit = 9 choices.
Multiplying our choices for each digit, we get:
Total integers in S = 9*9 = 81.

Combinations of P and Q that have at least 1 digit in common = Total ways to combine P and Q - Combinations of P and Q that have no digits in common.

Total ways to combine P and Q:
Number of choices for P = 81.
Number of choices for Q = 81.
Total combinations = 81*81 = 6561.

Combinations of P and Q that have no digits in common:
Tens digit of P can be any digit 1 through 9 = 9 choices.
Tens digit of Q can be any digit 1 through 9, excluding the digit used for the tens digit of P = 8 choices.
Units digit of P can be any digit 0 through 9, excluding the 2 digits already used = 8 choices.
Units digit of Q can be any digit 0 through 9, excluding the 3 digits already used = 7 choices.
Multiplying our choices for each digit, we get:
Combinations with no digits in common = 9*8*8*7 = 4032.

Thus, combinations of P and Q that have at least 1 digit in common = 6561-4032 = 2529.

Really the most lucid and convenient solution among all !! Thanx a ton !!

The correct answer is D.
Great dreams of great dreamers are always transcended- APJ

Legendary Member
Posts: 518
Joined: Tue May 12, 2015 8:25 pm
Thanked: 10 times

by nikhilgmat31 » Mon Jul 13, 2015 12:59 am
GMATGuru is a champion, Great Explanation.

Thanks

User avatar
Newbie | Next Rank: 10 Posts
Posts: 7
Joined: Mon Jun 22, 2015 6:30 am

by kulsim » Fri Jul 24, 2015 5:13 am
I have used Rahul's approach to solve this problem. The mistake I made was that I counted that there will be 72x31 of non-0 pairs and 9x24 0 pairs.

In non-0 pairs --> chose P=12 and then counted Q as follows: # beginning 1 = 8 (9 total - P=12 selected), # beginning 2 = 9, # ending 1 = 7 (8 - 21 selected as part of beggining 2), # edning 2 = 7.

8+9+7+7=31 I assume that the mistake is that I eliminated 12 from # beginning 1. But can we assume that this is a set with replacement? Or am I missing something else?

clearly I made the same mistake in calculating 24 ways to select Q in case of 0 pairs.

Could somebody explain?

Thanks!

Rahul@gurome wrote:Number of two-digit natural numbers with distinct digits = 9*9 = 81. Thus S contains 81 natural numbers.

Now let's see for a particular P how many Q's are there.

Say P = 53. Then Q may be any natural number in S which contains 3 or 5 or both. Number of such natural numbers = (Number of natural numbers with distinct digits starting with 3 + Number of natural numbers with distinct digits starting with 5 + Number of natural numbers with distinct digits ending with 3 + Number of natural numbers with distinct digits ending with 5)

1. Number of natural numbers with distinct digits starting with 3 = 9 (33 is not counted)
2. Number of natural numbers with distinct digits starting with 5 = 9 (55 is not counted)
3. Number of natural numbers with distinct digits ending with 3 = 7 (33 is not counted and 53 already counted in 2)
4. Number of natural numbers with distinct digits ending with 5 = 7 (55 is not counted and 35 already counted in 1)

Total number of possible Q = (9 + 9 + 7 + 7) = 32

But if P = 10, 20, 30 etc (P containing zero), then the calculation will be different.

Say P = 20. Then Q may be any natural number in S which contains 2 or 0 or both. Number of such natural numbers = (Number of natural numbers with distinct digits starting with 2 + Number of natural numbers with distinct digits ending with 0 + Number of natural numbers with distinct digits ending with 2)

1. Number of natural numbers with distinct digits starting with 2 = 9 (22 is not counted)
2. Number of natural numbers with distinct digits ending with 0 = 8 (20 already counted in 1)
3. Number of natural numbers with distinct digits ending with 2 = 8 (22 is not counted)

Total number of possible Q = (9 + 8 + 8) = 25

Total number of P such that P contains 0 = 9 => Number of possible ordered pair (P, Q) = 9*25 = 225
Total number of P such that P does not contains 0 = (81 - 9) = 72 => Number of possible ordered pair (P, Q) = 72*32 = 2304

Total number of possible ordered pair (P, Q) = (2304 + 225) = 2529

The correct answer is D.

Legendary Member
Posts: 518
Joined: Tue May 12, 2015 8:25 pm
Thanked: 10 times

by nikhilgmat31 » Wed Jul 29, 2015 2:29 am
GMATGuruNY wrote:
anuu wrote:
GMATGuruNY wrote:
goyalsau wrote:Let S be the set of all the two-digit natural numbers with distinct digits. In how many ways can the ordered pair (P, Q) be selected such that P and Q belong to S and have at least one digit in common?



4032

2720

2439

2529

2448
Number of integers in S:
Tens digit can be any digit 1 through 9 = 9 choices.
Units digit can be any digit 0 though 9, excluding the digit used for the tens digit = 9 choices.
Multiplying our choices for each digit, we get:
Total integers in S = 9*9 = 81.

Combinations of P and Q that have at least 1 digit in common = Total ways to combine P and Q - Combinations of P and Q that have no digits in common.

Total ways to combine P and Q:
Number of choices for P = 81.
Number of choices for Q = 81.
Total combinations = 81*81 = 6561.

Combinations of P and Q that have no digits in common:
Tens digit of P can be any digit 1 through 9 = 9 choices.
Tens digit of Q can be any digit 1 through 9, excluding the digit used for the tens digit of P = 8 choices.
Units of digit of P can be any digit 0 through 9, excluding the 2 digits already used = 8 choices.
Units of digit of Q can be any digit 0 through 9, excluding the 3 digits already used = 7 choices.
Multiplying our choices for each digit, we get:
Combinations with no digits in common = 9*8*8*7 = 4032.

Thus, combinations of P and Q that have at least 1 digit in common = 6561-4032 = 2529.

The correct answer is D.


Hi Mitch,

I've doubt in the folowing section :'Combination of P and Q that have no digits in common':

Can we consider the following case :


tens digits of P = 9 choices
unit digit of P = 9 choices(excluding the digit used for the tens digit)


Similarly for Q

Tens digit of Q = 7 choices (total 9 choices - 2 (the units and tens digits used for p))
Unit digit of Q = 7 choices (total 10 choices - 3 (the units and tens digits used for p &the tens))
The portion in red overlooks the following:
If the units digit of P = 0, then the number of options for the tens digit of Q = 8 (because we can use any digit other than the two digits used in P).

My solution bypasses this issue by FIRST counting the number of options for each hundreds digit -- neither of which can be 0 -- and THEN counting the number of options for each units digit.

seems a pretty complex question. Is this a real GMAT question. This must be 750 + question.