Live GMAT classes with Target Test Prep start Nov 21 and Nov 22. First class free.

See classes
Target Test Prep · GMAT

Choose how you want to prepare

Learn live with an expert or move at your own pace. Every option includes the complete TTP study system.

Newsweek Readers’ Choice Awards 2026 winner: Target Test Prep, #1 Test Prep

Target Test Prep was voted #1 Best Test Prep in the 2026 Newsweek Readers’ Choice™ Awards.

★★★★★5.0563 reviews
GMATLiveTeachStarts Nov 22
Josh Braslow, Target Test Prep GMAT expert
LIVE ONLINE CLASSES

Get Ready for GMAT Test Day Faster with Live Online Classes

with Josh Braslow, 20+ years in test prep

Nov 22 · Josh Braslow
Sun · 9:30 AM to 12:30 PM ET
Included
40 hours of live online classes + 6 months of TTP OnDemand
  • Attend the first class for free
  • Every class is recorded, so you never fall behind
View classes & enroll
Limited seats availableTarget Test Prep
EALiveTeachOnDemandStart anytime
EXECUTIVE ASSESSMENT

Target Test Prep EA OnDemand

Self-paced EA prep. Study on your schedule.

EXECUTIVE ASSESSMENT

with

165+ EA score guarantee
$05-day trial no automatic billing
Schedule
Included
40 hours of live online classes plus six months of access to the complete TTP EA OnDemand course.
  • 165+ EA Score Guarantee
  • 4,100+ Quant, Verbal, and Integrated Reasoning practice questions
  • 400+ hours of in-depth video lessons
  • 3,000+ step-by-step video solutions
View EA class & enroll Start free 5-day trial
Limited cohort · enrollment openTrial includes full course accessTarget Test Prep
GMATOnDemandStart anytime
SELF-PACED MASTERCLASS

Target Test Prep GMAT OnDemand

Complete access from day one. Study on your schedule.

715+ score guarantee
$0to start then $127/mo
  • Personalized study plan and analytics
  • Thousands of lessons and practice questions

distinct

Expert replies

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
Join the discussion

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

Thanks
Join the discussion

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.
Join the discussion

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.
Join the discussion