MathDB
Nice combinatorial NT

Source: 42nd International Tournament of Towns, Junior A-Level P7, Spring 2021

February 18, 2023
combinatoricsCombinatorial Number TheoryTournament of TownsKvant

Problem Statement

Let pp{} and qq{} be two coprime positive integers. A frog hops along the integer line so that on every hop it moves either pp{} units to the right or qq{} units to the left. Eventually, the frog returns to the initial point. Prove that for every positive integer dd{} with d<p+qd < p + q there are two numbers visited by the frog which differ just by dd{}.
Nikolay Belukhov