2010 AMC 10B Problem 18
Positive integers , , and are randomly and independently selected with replacement from the set . What is the probability that is divisible by ?
Show solution without answering
Key insight
Factor the expression as a times (bc + b + 1). It is a multiple of 3 when a is, or when bc + b + 1 is.
Solution
Whether a number is a multiple of depends only on the remainders when you divide by . So think about remainders.
1. Factor. Every term has an , so
A product is a multiple of exactly when one of its factors is (because is prime).
2. Each remainder is equally likely. , so among exactly numbers leave remainder , leave remainder , and leave remainder . Each remainder has probability , separately for , and .
3. Case 1: is a multiple of . Probability . The whole expression is then a multiple of .
4. Case 2: is not a multiple of . Probability . Now we need to be a multiple of . Check all pairs of remainders for and (only remainders matter):
| Multiple of ? | |||
|---|---|---|---|
| any | no | ||
| no | |||
| yes | |||
| no | |||
| yes | |||
| no | |||
| no |
Two of the equally likely pairs work, so this has probability .
5. Add the two cases (they do not overlap):
The answer is .
Why this works
Divisibility by only cares about remainders, so a problem about choices becomes a problem about remainders. Factoring out the common splits the question into "is a multiple of ?" and "is the other factor?". The number matters only because it is a multiple of , which makes all three remainders equally likely.
Alternative approach
Count remainder triples. There are equally likely choices of remainders for .
- has remainder : any and work, triples.
- has remainder or : only the good pairs from the table work, triples.
That is good triples out of , so the probability is .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Factor: .
Because , each of is equally likely to be , or , independently.
The product is divisible by if , which has probability .
Otherwise (probability ) we need , i.e. . The residue pairs with product are and ; each pair occurs with probability , so this has probability .
Total:
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 12: Introduction to Modular Arithmetic
- Introduction to Counting & Probability, Chapter 7: Introduction to Probability
- Introduction to Algebra, Chapter 11: Special Factorizations
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.2)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.