Problem

Source: Hong Kong 2019 TST 2 P2

Tags: number theory



Let $p$ be a prime number greater than 10. Prove that there exist positive integers $m$ and $n$ such that $m+n < p$ and $5^m 7^n-1$ is divisible by $p$.