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 ##=.##
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top