Problem

Source: St Petersburg 2021 10.2

Tags: number theory



Given are $2021$ prime numbers written in a row. Each number, except for those in the two ends, differs from its two adjacent numbers with $6$ and $12$. Prove that there are at least two equal numbers.