This question is from Jmo odisha 2019. I used fermat's theorem but it did not work as 2019 is a composite number. Then how do I solve it?
2026-03-28 22:26:52.1774736812
Find the remainder when $2^{2019}$ is divided by $2019$
757 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Using Euler's theorem, $2^{1344}\equiv1\bmod2019$, so $2^{2019}\equiv2^{675}\bmod2019$.
By Fermat's little theorem, $2^{672}\equiv1\bmod673$, so $2^{675}\equiv2^3=8\bmod673$.
Also $2^{675}\equiv2^1\equiv2^3=8\bmod3$.
Therefore, by the Chinese remainder theorem, $2^{675}\equiv8\bmod2019$.
More generally, if $p>3$ is prime, then $p$ divides $2^{p-1}-1,$ and $3$ divides $2^{p-1}-1,$
so $3p$ divides $2^{p-1}-1$, so $3p$ divides $2^{3p-3}-1$, so $3p$ divides $2^{3p}-8$.