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

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Units
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
Math100
Messages
823
Reaction score
234
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 ##.
 
Reply
  • Like
Likes   Reactions: 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 ##=.##
 
Reply
  • Informative
Likes   Reactions: Math100