Sunday, 27 October 2019

modular arithmetic - Finding the least significant digit of a large exponential.



I am trying to find the least significant digit of 171717. I know that I need to use to use the properties of modular arithmetic and mod base 10, but I am not sure how to go about it.



Please provide some hints/first few steps to help me get started.



Answer



Start off by looking at 17n mod 10. (In your case, n will end up being 1717, but that's way too big to calculate yet.)



170 ends in a 1, 171 ends in a 7, 172 is congruent to 7×7 so it ends in a 9, 173 likewise is congruent to 9×7 so it ends in a 3, and finally 174 is congruent to 3×7 so it ends in a 1.



Since 170 and 174 are congruent mod 10, it follows that 17n mod 10 will repeat every time the exponent n goes up by 4.



Therefore, to solve your problem, you now need to calculate the exponent 1717 mod 4. Then you can use that along with the pattern I just described to get the final answer. Since this is homework, I'll let you calculate 1717 mod 4 yourself... hint, use the same idea that I used above!


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...