Every whole number is either triangular, or the sum of two triangular numbers or the sum of three triangular numbers. That is, if we take any number we choose we can always form one, two, or three triangles with them. The number 1 will obviously, and uniquely, only form one triangle; some numbers will only form two triangles (as 2, 4, 11, etc.); some numbers will only form three triangles (as 5, 8, 14, etc.). Then, again, some numbers will form both one and two triangles (as 6), others both one and three triangles (as 3 and 10), others both two and three triangles (as 7 and 9), while some numbers (like 21) will form one, two, or three triangles, as we desire. Now for a little puzzle in triangular numbers.
Sandy McAllister, of Aberdeen, practised strict domestic economy, and was anxious to train his good wife in his own habits of thrift. He told her last New Year's Eve that when she had saved so many sovereigns that she could lay them all out on the table so as to form a perfect square, or a perfect triangle, or two triangles, or three triangles, just as he might choose to ask he would add five pounds to her treasure. Soon she went to her husband with a little bag of £36 in sovereigns and claimed her reward. It will be found that the thirty-six coins will form a square (with side 6), that they will form a single triangle (with side 8), that they will form two triangles (with sides 5 and 6), and that they will form three triangles (with sides 3, 5, and 5). In each of the four cases all the thirty-six coins are used, as required, and Sandy therefore made his wife the promised present like an honest man.
The Scotsman then undertook to extend his promise for five more years, so that if next year the increased number of sovereigns that she has saved can be laid out in the same four different ways she will receive a second present; if she succeeds in the following year she will get a third present, and so on until she has earned six presents in all. Now, how many sovereigns must she put together before she can win the sixth present?
What you have to do is to find five numbers, the smallest possible, higher than 36, that can be displayed in the four ways—to form a square, to form a triangle, to form two triangles, and to form three triangles. The highest of your five numbers will be your answer.
[138.—THE ARTILLERYMEN'S DILEMMA.]
"All cannon-balls are to be piled in square pyramids," was the order issued to the regiment. This was done. Then came the further order, "All pyramids are to contain a square number of balls." Whereupon the trouble arose. "It can't be done," said the major. "Look at this pyramid, for example; there are sixteen balls at the base, then nine, then four, then one at the top, making thirty balls in all. But there must be six more balls, or five fewer, to make a square number." "It must be done," insisted the general. "All you have to do is to put the right number of balls in your pyramids." "I've got it!" said a lieutenant, the mathematical genius of the regiment. "Lay the balls out singly." "Bosh!" exclaimed the general. "You can't pile one ball into a pyramid!" Is it really possible to obey both orders?