4

I was trying to prove why $x^5\equiv x \pmod {10}$ for all natural numbers $x$. I saw a proof where they applied Euler's theorem to show this. They said that the totient function for $10$ is $4$. ($φ(10) = 4$). Therefore,

$x^5 ≡ 1^4 \cdot x^1 ≡ x\ \pmod { 10}$

However my question is: This isn't a correct proof is it? Because it requires $x$ to be relatively prime with $10$ for this to work. So it's a partial proof only (it would prove for $1$, $3$, $7$, and $9$ but not for the other $x$'s)?

If this is true, is there a way to generalize using Euler's Theorem to prove for all $x$? Or is there another way to go about doing this proof?

Alistair
  • 1,720
CowZow
  • 273
  • 4
  • 7

1 Answers1

3

It's fairly easy using the Chinese Remainder Theorem: The ring $\mathbf Z/10 \mathbf Z$ is isomorphice to the product of rings $ \mathbf Z/2 \mathbf Z\times \mathbf Z/5\mathbf Z$. In each of these rings (actually fields, since 2 and 5 are prime numbers), it is true that $x^5=x$ for any $x$ (use little Fermat), hence it is true in their product.

Bernard
  • 175,478