The number of stones in a heap is a square
Source: Czech-Polish-Slovak 2004 Q6
April 28, 2013
greatest common divisornumber theory proposednumber theory
Problem Statement
On the table there are heaps of stones. In the first step, we choose any three of the heaps, merge them into a single new heap, and remove stone from this new heap. Thereafter, in the -th step () we merge some three heaps containing more than stones in total and remove stones from the new heap. Assume that after a number of steps a single heap of stones remains on the table. Show that the number is a perfect square if and only if so are both and . Find the least with this property.