This is a puzzle that appeared on March 27th 2023 as a post in a blog titled PUZZLE A DAY. The challenge is to find the last digit of 2023 to the power of 2023? The clue provided is that there is a pattern to be found. Work out the last digit of 2023 to the power of 1, 2, 3, 4 and 5.
I used SageMathCell to generate the numbers for 2023 raised to the powers 1 to 12. The results were (permalink):The repeating pattern 1, 3, 9, 7 of final digits is apparent. This is not surprising when we consider that it is only the final digit that we are interested in and that 3 raised to the same powers produces the same pattern:
Every power that is a multiple of 4 ends in a 1 and so all we need to do is to divide 2023 by 4 which leaves a remainder of 3. Thus 2023 to the power 2023 is three positions ahead of the 1 and so the final digit must be 7. In general, any number that ends in 3, when raised to consecutive powers, will follow this same 1, 3, 9, 7 pattern just as 3 and 2023 do.
Generalising, we can look at numbers ending in digits 0 to 9. Here is the pattern for integer powers greater than zero:
- 0 --> numbers ending in 0 will always end in 0
- 1 --> numbers ending in 1 will always end in 1
- 2 --> numbers ending in 2 will follow a 2, 4, 8, 6 pattern
- 3 --> numbers ending in 3 will follow a 1, 3, 9, 7 pattern
- 4 --> numbers ending in 4 will follow a 4, 6 pattern
- 5 --> numbers ending in 5 will always end in 5
- 6 --> numbers ending in 6 will always end in 6
- 7 --> numbers ending in 7 will follow a 1, 7, 9, 3 pattern
- 8 --> numbers ending in 8 will follow a 2, 6, 8, 4 pattern
- 9 --> number ending in 9 will follow a 1, 9 pattern
So a question like what is final digit of 2028 raised to the power 2028 is easily answered. Let's look at the powers of 2028 from 1 to 12:
All multiples of 4 end in 6 and if we divides 2028 by 6 we get 0 and so 2028 raised to the power 2028 must end in 6 as well. This is just my way of looking at the problem and there are surely other approaches.
Overall the PUZZLE A DAY site looks interesting, providing as it does a little mathematical challenge each day.
No comments:
Post a Comment