Let $p$ be a prime and $m,N$ positive integers. Then $$ N | \sum_{d|N} p^{md} \mu\bigg(\frac{N}{d}\bigg). \tag{1} $$ For example with $p=7,m=2$ and $N=12$, we find that $7^{24}-7^{12}-7^8+7^4 \equiv 0$ $\pmod{12}.$
This relation must hold for the following reason: Let $q=p^m$ and consider the finite field $F_{q^N}$ having $q^N$ elements.
Every element of $F_{q^N}$ is a root of exactly one polynomial irreducible over $F_q$ whose degree must be a divisor of $N$, so $$ q^N = \sum_{d|N} d \pi_d $$ where we denote by $\pi_d$ the number of irreducible polynomials of degree $d$ in $F_q[x].$
Mobius' inversion formula then gives $$ N\pi_N = \sum_{d|N} q^d \mu\bigg(\frac{N}d \bigg), $$
which implies (1).
Question Although this well-known argument is straightforward, I wonder if there is a demonstration of the divisibility result (1) using only elementary number theory without invoking the theory of finite fields.