🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2016 Math Kangaroo

Problem 18

Problem 18 · 2016 Math Kangaroo Stretch
Number Theory place-value

Eight cards with the numbers 1, 2, 4, 8, 16, 32, 64, 128 are each in an unmarked envelope. Eva randomly chooses some of these eight envelopes. Ali takes the remaining ones. Both add their numbers together. They find out that Eva’s sum is 31 bigger than Ali’s sum. How many envelopes has Eva chosen?

Show answer
Answer: D — 5
Show hints
Hint 1 of 2
The eight cards are the powers of two from 1 to 128; their total is 255.
Still stuck? Show hint 2 →
Hint 2 of 2
If Eva's sum beats Ali's by 31 out of 255, find Eva's exact total, then read off its binary digits.
Show solution
Approach: binary split
  1. The cards total 1+2+…+128 = 255.
  2. Eva − Ali = 31 and Eva + Ali = 255, so Eva = (255+31)/2 = 143.
  3. 143 = 128+8+4+2+1, which is 5 cards.
Mark: · log in to save