10

If $p$ and $q$ are distinct primes , prove that $$p^{q-1}+q^{p-1} \equiv 1 \pmod {pq}$$


Using Fermat's Theorem we can get $$p^{q-1} \equiv 1 \pmod q, \qquad q^{p-1} \equiv 1 \pmod p.$$

After that I have no idea at all. Can anyone help me please

Lord_Farin
  • 18,014
  • 9
  • 53
  • 132
adulum
  • 151
  • I somehow found this looking for content on quadratic reciprocity, could this be proved using the Legendre symbol? I am fairly new to number theory so might come back later with an answer myself... :) – arridadiyaat Feb 03 '25 at 14:59

2 Answers2

13

$p^{q-1}+q^{p-1}\equiv p^{q-1}\pmod q$

Now using Fermat's Little Theorem $p^{q-1}\equiv1\pmod q\implies p^{q-1}+q^{p-1}\equiv 1\pmod q$

Similarly, $p^{q-1}+q^{p-1}\equiv 1\pmod p$

As $p$ and $q$ both divides $(p^{q-1}+q^{p-1}-1),$ lcm$(p,q)$ will divide $(p^{q-1}+q^{p-1}-1)$

Now, lcm$(p,q)=p\cdot q$

Generalization:

For any two distinct integer $m,n>1$ where $(m,n)=1,$

$(1):m^{\phi(n)}+n^{\phi(m)}\equiv1\pmod {m\cdot n}$ using Euler' Totient theorem

$(2):m^{\lambda(n)}+n^{\lambda(m)}\equiv1\pmod {m\cdot n}$ using Carmichael Function

4

To your

$$p^{q-1} \equiv 1 \pmod q\text, \qquad q^{p-1} \equiv 1 \pmod p\text,$$

add the fact that

$$p^{q-1} \equiv 0 \pmod p\text, \qquad q^{p-1} \equiv 0 \pmod q\text.$$

Then

$$p^{q-1} + q^{p-1} \equiv 1 \pmod q\text, \qquad p^{q-1} + q^{p-1} \equiv 1 \pmod p\text,$$

and by the Chinese Remainder Theorem,

$$p^{q-1} + q^{p-1} \equiv 1 \pmod {pq}\text.$$

Kallus
  • 551