You have two groups of digit cards.
Group A: \(0, 2, 4, 6, 8\)
Group B: \(1, 3, 5, 7, 9\)
Use every digit in each group to make one five-digit number.
a) What is the smallest possible positive difference between a number from Group A and a number from Group B?
b) What is the greatest possible difference?
The digit \(0\) cannot be the first digit of a five-digit number.
Hints
- Remember that the number from Group A cannot begin with \(0\).
- For the smallest difference, choose ten-thousands digits that differ by \(1\), then arrange the remaining digits to close the gap.
- For the greatest difference, compare the largest possible number from one group with the smallest possible number from the other.
Solution
1. For the smallest difference, the ten-thousands digits must differ by \(1\). For each adjacent pair, arrange the remaining digits so the greater number is as small as possible and the lesser number is as large as possible.
2. The closest differences for the possible adjacent leading digits are \(20{,}468 - 19{,}753 = 715\), \(31{,}579 - 28{,}640 = 2939\), \(40{,}268 - 39{,}751 = 517\), \(51{,}379 - 48{,}620 = 2759\), \(60{,}248 - 59{,}731 = 517\), \(71{,}359 - 68{,}420 = 2939\), \(80{,}246 - 79{,}531 = 715\), and \(91{,}357 - 86{,}420 = 4937\).
3. Therefore, the smallest possible positive difference is \(517\). It occurs for \(40{,}268\) and \(39{,}751\), and also for \(60{,}248\) and \(59{,}731\).
4. For the greatest difference, compare the extreme possibilities in both directions: \(97{,}531 - 20{,}468 = 77{,}063\) and \(86{,}420 - 13{,}579 = 72{,}841\).
5. Since \(77{,}063 > 72{,}841\), the greatest possible difference is \(77{,}063\).
Answer
a) The smallest possible difference is \(517\), for example \(40{,}268 - 39{,}751 = 517\).
b) The greatest possible difference is \(77{,}063\), from \(97{,}531 - 20{,}468 = 77{,}063\).