2007 AMC 10A Problem 16
Integers and , not necessarily distinct, are chosen independently and at random from 0 to 2007, inclusive. What is the probability that is even?
Show solution without answering
Key insight
Only odd and even matter. A product of two random numbers is odd just 1/4 of the time, and ad - bc is even when both products match.
Solution
Whether is even depends only on which numbers are odd and which are even. From to there are numbers, exactly half odd and half even. So each of is odd with chance .
- When is odd? Only when and are both odd. Chance: . So is even with chance .
- Same for : odd with chance , even with chance . It uses different letters from , so the two products do not affect each other.
- When is even? Look at the four cases:
| odd | odd | even |
| even | even | even |
| odd | even | odd |
| even | odd | odd |
So it is even exactly when the two products are both odd or both even.
4. Add those two chances.
The answer is .
Why this works
For questions about "even" or "odd", replace every number by just its type, odd or even. A huge range of numbers then shrinks to a few cases. The surprise here is that products are even much more often than odd, which pushes the answer above one half.
Alternative approach
Find the chance that is odd instead. That needs one product odd and the other even: . So it is even with chance .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Only parity matters. The range to contains integers, half odd and half even, so each of is odd with probability , independently.
A product is odd only when both factors are odd, so
and the same for . Since and involve disjoint sets of variables, they are independent.
is even exactly when and have the same parity:
The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 7: Introduction to Probability
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Introduction to Counting & Probability, Chapter 8: Basic Probability Techniques
- Introduction to Algebra, Chapter 20: Special Functions (§20.3)
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. Also appeared as 2007 12A #12.