Problem

Source: 2023 Hong Kong TST

Tags: number theory, TST



Let $n$ be a positive integer. Show that if p is prime dividing $5^{4n}-5^{3n}+5^{2n}-5^{n}+1$, then $p\equiv 1 \;(\bmod\; 4)$.