Processing math: 100%

Tuesday, 28 March 2023

2023 TO THE POWER OF 2023

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):

202312023
202324092529
202338279186167
2023416748793615841
2023533882809484846343
2023668544923587844151889
20237138666380418208719271447
20238280522087586036239086137281
20239567496183186551311671255719463
2023101148044778586393303510950320473649
2023112322494587080273653002652498318191927
2023124698406549663393600024366004097702268321

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:

313
329
3327
3481
35243
36729
372187
386561
3919683
31059049
311177147
312531441

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:

202812028
202824112784
202838340725952
2028416914992230656
2028534303604243770368
2028669567709406366306304
20287141083314676110869184512
20288286116962163152842706190336
20289580245199266873965008154001408
2028101176737264113220401036536314855424
2028112386423171621610973302095646526799872
2028124839666192048627053856649971156350140416

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