BMO2 · 2023/24 · 2024-01-24 · Question 4
Problem outline
Let be positive integers. Initially there are piles, each containing objects. In one move, choose two distinct piles and remove a total of exactly objects from those two piles, without removing more objects than either pile contains. Determine all pairs for which all piles can be emptied.
Show answer and methods 1 methods
Answer
Exactly the pairs where is a positive divisor of .
Method 1 Encode the chosen pairs as a graph
The total number of objects is , and each move removes , so any successful schedule uses exactly moves. Form a graph whose vertices are the piles and whose edges are the pairs selected in the moves. The same pair cannot be selected twice: two such moves would remove objects from two piles that initially contain only . Hence this is a simple graph with exactly edges.
Let a connected component have vertices. No move crosses from it to another component, so all objects initially in those piles are removed by whole moves of size . Thus . If , then . Every component therefore has at least vertices, and the graph has at most components.
A graph on vertices with at most components has at least edges. Since our graph has edges, . Put . Then . On the other hand, divides both and , so it divides and hence . Therefore , which shows and .
Conversely suppose and . Reserve of the original piles. Conceptually divide each reserved pile into packets of objects, producing packets in total. Pair these packets one-to-one with the remaining whole piles. For each pair, choose the corresponding two original piles and remove objects from the reserved pile and all objects from the other pile. Each move removes objects. Every non-reserved pile is emptied once, and every reserved pile loses objects. Thus all piles are emptied, proving sufficiency.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)