Problem

Source: Thailand TSTST 2021, test 1, P1

Tags: number theory



An odd prime $p$ is called a prime of the year $2022$ if there is a positive integer $n$ such that $p^{2022}$ divides $n^{2022}+2022$. Show that there are infinitely many primes of the year $2022$.