Find the units digit of ## 3^{100} ## by the use of Fermat's theorem

Click For Summary
To find the units digit of 3^100, we consider it modulo 10, which factors into 5 and 2. By applying Fermat's theorem, we find that 3^4 is congruent to 1 modulo 5, leading to the conclusion that 3^100 is also congruent to 1 modulo 5. Additionally, since 3 is congruent to 1 modulo 2, it follows that 3^100 is congruent to 1 modulo 2 as well. Combining these results, we conclude that 3^100 is congruent to 1 modulo 10. Thus, the units digit of 3^100 is 1.
Math100
Messages
816
Reaction score
229
Homework Statement
Find the units digit of ## 3^{100} ## by the use of Fermat's theorem.
Relevant Equations
None.
Consider modulo ## 10 ##.
Then ## 10=5\cdot 2 ##.
Applying the Fermat's theorem produces: ## 3^{4}\equiv 1\pmod {5} ##.
This means ## (3^{4})^{25}=3^{100}\equiv 1\pmod {5} ##.
Observe that ## 3\equiv 1\pmod {2}\implies 3^{100}\equiv 1\pmod {2} ##.
Now we have ## 5\mid (3^{100}-1) ## and ## 2\mid (3^{100}-1) ##.
Thus ## (5\cdot 2)\mid (3^{100}-1)\implies 3^{100}\equiv 1\pmod {10} ##.
Therefore, the units digit of ## 3^{100} ## is ## 1 ##.
 
Physics news on Phys.org
Well written!
 
The working out suggests first equating ## \sqrt{i} = x + iy ## and suggests that squaring and equating real and imaginary parts of both sides results in ## \sqrt{i} = \pm (1+i)/ \sqrt{2} ## Squaring both sides results in: $$ i = (x + iy)^2 $$ $$ i = x^2 + 2ixy -y^2 $$ equating real parts gives $$ x^2 - y^2 = 0 $$ $$ (x+y)(x-y) = 0 $$ $$ x = \pm y $$ equating imaginary parts gives: $$ i = 2ixy $$ $$ 2xy = 1 $$ I'm not really sure how to proceed from here.