Problem

Source: Spain Mathematical Olympiad 2018 P5

Tags: number theory, Spain, Diophantine equation



Let $a, b$ be coprime positive integers. A positive integer $n$ is said to be weak if there do not exist any nonnegative integers $x, y$ such that $ax+by=n$. Prove that if $n$ is a weak integer and $n < \frac{ab}{6}$, then there exists an integer $k \geq 2$ such that $kn$ is weak.