I can prove $p^{q-1}+q^{p-1}$ is congruent to 1 mod $pq$ very easily, but with the $p+q$ it doesn't fit a theorem I can find. The only ones I find say if they are congruent to $b$. I get one is congruent to $p$ and the other is $q$, these are obviously different numbers.
2026-04-06 07:37:10.1775461030
On
On
Prove that $p^q+q^p\equiv p+q \mod pq$
1.4k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
5
There are 5 best solutions below
1
On
I think you need to assume that $p$ and $q$ are different primes.
Hint: modulo $q$, $$p^q\equiv p^{q-1}p\equiv p\quad\hbox{and}\quad q^p\equiv0^p\equiv0\equiv q\ .$$
0
On
Take $\pmod p$. Then (by F(little)T), $p^q+q^p \equiv q \pmod p$. Similarly, $p^q+q^p \equiv p \pmod q$. Now let $n$ be the expression. Then $n = pr_1+q = qr_2+p$. Take this equation $\pmod p$ to arrive at $q \equiv qr_2 \pmod p \implies r_2 \equiv 1 \pmod p$. Therefore, $r_2 = r_3p+1$.
Then $n = qr_2+p = q(r_3q+1)+p = pqr_3+p+q$ as desired.
Show $p^q+q^p$ and $p+q$ have the same residues mod $p$ and mod $q$.