A class collects to buy flowers for a classmate who is in the hospital. Roses cost each, and carnations cost each. No other flowers are to be used. How many different bouquets could be purchased for exactly ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
In 3r + 2c = 50 the term 3r must be even, so r is even; r can be 0, 2, ..., 16, which is 9 values.
Solution
Let be the number of roses and the number of carnations, with integers and
Since and are even, must be even, so is even. Also gives . Thus , and each such determines as a nonnegative integer.
That list has values, so there are bouquets.
The answer is .
Why this works
A two-variable linear equation in nonnegative integers is solved by isolating a divisibility condition on one variable (here, parity of ) and then bounding it. Once the constrained variable is pinned to an arithmetic progression, the count is just the length of that progression; do not forget the endpoints.
The trap
Forgetting the all-carnation bouquet (r = 0) and answering 8, or including r = 18 even though 3(18) exceeds 50.
Common mistakes
- Forgetting the all-carnation bouquet (r = 0) and answering 8, or including r = 18 even though 3(18) exceeds 50.
- Counting over to without checking that is divisible by , which gives or .
Techniques
Use an invariant, parity, or coloring argument