MathCastle
PutnamSuperchallengeIntegrals I: Feynman's Trick

Integrals I: Feynman's Trick · Superchallenge problem

On a board are the numbers 1,2,…,20241, 2, \ldots, 2024. A move erases two numbers a,ba, b and writes ∣a−b∣|a - b|. Find the smallest possible value of the last remaining number.