Verify that ## a^{5} ## and ## a ## have the same units digit

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Units
AI Thread Summary
For any integer a, it is proven that a^5 and a have the same units digit. This is established using Fermat's theorem, which shows that a^2 is congruent to a modulo 2 and a^5 is congruent to a modulo 5. Consequently, it follows that a^5 is congruent to a modulo 10. The discussion emphasizes that when considering the same modulus, it is unnecessary to repeat congruences, as they convey the same relationship. Therefore, the conclusion is that a^5 and a indeed share the same units digit for all integers a.
Math100
Messages
813
Reaction score
229
Homework Statement
For any integer ## a ##, verify that ## a^{5} ## and ## a ## have the same units digit.
Relevant Equations
None.
Proof:

Let ## a ## be any integer.
Applying the Fermat's theorem produces:
## a^{2}\equiv a\pmod {2}, a^{5}\equiv a\pmod {5} ##.
Observe that
\begin{align*}
&a^{4}\equiv a^{2}\pmod {2}\equiv a\pmod {2}\\
&a^{5}\equiv a^{2}\pmod {2}\equiv a\pmod {2}.\\
\end{align*}
This means ## a^{5}\equiv a\pmod {10} ##.
Suppose ## 0\leq k<10 ##.
Then ## a^{5}-k\equiv (a-k)\pmod {10} ##.
Thus ## a^{5}-k\equiv 0\pmod {10}\implies a-k\equiv 0\pmod {10} ##.
Therefore, ## a^{5} ## and ## a ## have the same units digit for any integer ## a ##.
 
  • Like
Likes WWGD and fresh_42
Physics news on Phys.org
Math100 said:
Homework Statement:: For any integer ## a ##, verify that ## a^{5} ## and ## a ## have the same units digit.
Relevant Equations:: None.

Proof:

Let ## a ## be any integer.
Applying the Fermat's theorem produces:
## a^{2}\equiv a\pmod {2}, a^{5}\equiv a\pmod {5} ##.
Observe that
\begin{align*}
&a^{4}\equiv a^{2}\pmod {2}\equiv a\pmod {2}\\
&a^{5}\equiv a^{2}\pmod {2}\equiv a\pmod {2}.\\
\end{align*}
This means ## a^{5}\equiv a\pmod {10} ##.
Suppose ## 0\leq k<10 ##.
Then ## a^{5}-k\equiv (a-k)\pmod {10} ##.
Thus ## a^{5}-k\equiv 0\pmod {10}\implies a-k\equiv 0\pmod {10} ##.
Therefore, ## a^{5} ## and ## a ## have the same units digit for any integer ## a ##.
Fine. Only one comment. As long as you consider the same modulus, it isn't necessary to repeat it. I.e. ##a^5\equiv a^2\equiv a \pmod{5}## is sufficient. All are modulo ##5.## It is different if we write ##a^5\equiv a^2\pmod{5} \Longrightarrow a^5\equiv a\pmod{5}.## The implication interrupts the calculation, the ##\equiv ## sign has the same meaning as ##=.##
 
Back
Top