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):20231→2023
20232→4092529
20233→8279186167
20234→16748793615841
20235→33882809484846343
20236→68544923587844151889
20237→138666380418208719271447
20238→280522087586036239086137281
20239→567496183186551311671255719463
202310→1148044778586393303510950320473649
202311→2322494587080273653002652498318191927
202312→4698406549663393600024366004097702268321
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:
31→3
32→9
33→27
34→81
35→243
36→729
37→2187
38→6561
39→19683
310→59049
311→177147
312→531441
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:
20281→202820282→4112784
20283→8340725952
20284→16914992230656
20285→34303604243770368
20286→69567709406366306304
20287→141083314676110869184512
20288→286116962163152842706190336
20289→580245199266873965008154001408
202810→1176737264113220401036536314855424
202811→2386423171621610973302095646526799872
202812→4839666192048627053856649971156350140416
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