Problem

Source: 2024 IGMO Christmas Edition #5 International Gamma Mathematical Olympiad

Tags: combinatorics



Santa has to deliver Christmas presents to children in a town. The town is rectangular in shape and it can be divided into square regions. After the division, it looks like a grid with $101$ columns and infinitely many rows. Santa labeles the square regions with consecutive integers starting from $1$, so that the square on the $m^{th}$ row and $n^{th}$ column is labeled as $101m + n - 101$. Grinch hates Christmas, he plans to stop Santa by placing mischievous little monsters who love stealing Christmas presents in regions labeled with odd prime numbers. These regions are called “dangerous regions”. Those regions without monsters are called “safe regions”. Santa can move from one region to another region only if they share a common side. Suppose Santa wants to move from a dangerous region $p$ to another dangerous region $q$ (where $p$ and $q$ are odd primes), and he wants all the regions in between his way to be safe regions, is it always possible for Santa to do so? Prove your claim.