(i) A rack of n rows holds the triangular number 1+2+⋯+n=2n(n+1). For n=21:
221×22=231
So the 231 balls fill exactly one rack of 21 rows.
(ii) Call the smaller rack's number of balls T. Then T≤231÷2=115.5, so T is one of the triangular numbers 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105. For each, check whether 231−T is also a triangular number (the triangular numbers up to 231 are 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231):
| Smaller rack T | 1 | 3 | 6 | 10 | 15 | 21 | 28 | 36 | 45 | 55 | 66 | 78 | 91 | 105 |
|---|
| 231−T | 230 | 228 | 225 | 221 | 216 | 210 | 203 | 195 | 186 | 176 | 165 | 153 | 140 | 126 |
| triangular? | no | no | no | no | no | yes | no | no | no | no | no | yes | no | no |
Only two splits work:
- 21+210=231: a rack of 6 rows and a rack of 20 rows;
- 78+153=231: a rack of 12 rows and a rack of 17 rows.
Every possible smaller rack has been tried, so there are no other ways.