I was wondering why the last digit of $n^5$ is that of $n$? What's the proof and logic behind the statement? I have no idea where to start. Can someone please provide a simple proof or some general ideas about how I can figure out the proof myself? Thanks.
|
|
Alternatively, you could prove that $n^5-n$ is divisible by $10$ by induction. If $n=0$, it is obviously true. Assume true for $n$, we need to show that: $$(n+1)^5-(n+1) = n^5 + 5n^4 + 10n^3 + 10n^2 + 5n + 1 - (n+1) \\=n^5 - n + 10(n^3+n^2) +5n(n^3+1)$$ is divisible by 10. But $n^5-n$ is divisibly by $10$ by induction, and $10(n^3+n^2)$ is obviously divisible by $10$, so all you need to show is that $5n(n^3+1)$ is divisible by $10$, which is the same as proving that $n(n^3+1)$ is divisible by $2$. The fundamental reason for this, as everybody has noted, is due to rules of modular arithmetic. |
|||||||||||||
|
|
Note, the last digit of $n^5$ can only be affected by the last digit of $n$. That is, the 1s digit of any power of $n$ will only be affected by the ones digit of $n$, and not the 10s, 100s, or any other digit. So, you only have 10 cases, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. All you have to do is try them separately. $0^5 = 0$, $1^5 = 1$, $2^5 = 32$, $3^5 = 243$, ..., $9^5 = 59049$. If you've heard of modular arithmetic, all numbers mod 10 are going to be in the set $\{0, 1, 2, 3, 4, 5, 6, 7, 8, 9\}$. And, this is why we only need consider these 10 cases. |
|||||||||
|
|
I won't explain you that it's true because you discovered it was true ! Fermat's little theorem tells us that :
$$k^5\equiv k\pmod{5}$$
Further $k^5$ will be even or odd when $k$ is even or odd. We may produce this table of powers with that property :
$$1, 5, 9, 13, 17, 21\cdots$$
The pattern is clear : you'll get the same result for $p=4n+1$ with $n\in \mathbb{N}$. |
|||||
|
|
$(n-2)(n-1)n(n+1)(n+2)$ $=n(n^2-1)(n^2-4)=n(n^4-5n^2+4)=n^5-5n^3+4n=n^5-n+5(n^3+n)$ So, $n^5-n=n(n-1)(n+1)(n-2)(n+2)-5(n^3+n)$ The first term in the RHS is the product of 5 consecutive numbers hence is divisible by 5. So, the RHS is divisible by 5. =>$n^5-n$ is divisible by 5. As $2|n(n-1)$ and $n(n-1)|(n^5-n)$ so, $2|(n^5-n)$ for any integral n. So, the lcm of 2,5 i.e. 10 will divide $n^5-n$ =>$n^5 , n$ will have the same last digit. |
||||
|
|