Integers and , not necessarily distinct, are chosen independently and at random from 0 to 2007, inclusive. What is the probability that is even?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
ad - bc is even exactly when ad and bc have the same parity; a product is odd with probability 1/4, so the answer is (1/4)^2 + (3/4)^2.
Solution
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 .
Why this works
Questions about evenness of an expression reduce to parity of the inputs, and independence lets us treat each product separately. The asymmetry (products are even of the time) is what pushes the answer above . Reducing a huge sample space to a handful of parity classes is the standard first move for "is it even" probabilities.
Alternative approach
Complement: is odd exactly when one product is odd and the other even, with probability . So the desired probability is .
The trap
Assuming ad and bc are each odd or even with probability 1/2, which gives 1/2; a product of two random integers is odd only 1/4 of the time.
Common mistakes
- Assuming and are each odd or even with probability , which gives ; a product of two random integers is odd only of the time.
- Worrying about the exact range to ; only the fact that it splits evenly between odd and even matters.
Techniques
Use an invariant, parity, or coloring argument