Every day I have a problem while having simple calculations.
Can anyone give a Tip how to overcome? For Example :
How one will calculate the remainder of $ 2^{546}\pmod{43} $ ? Without a calculator ??
And how to go about this?
Every day I have a problem while having simple calculations.
Can anyone give a Tip how to overcome? For Example :
How one will calculate the remainder of $ 2^{546}\pmod{43} $ ? Without a calculator ??
And how to go about this?
Hints applying modular arithmetic and Fermat's Little Theorem:
$$546=43\cdot 12+30\implies 2^{546}=2^{42}=1\pmod{43}$$
43 and 2 are coprimes .
Euler number of 43 is 42 .
546 is multiple of 42 .
so remainder is 1 (fermat's theorem ). So no calculator used , yet solved just by observing numbers .
Notice that $2^7 = 128$ and also $3\cdot 43 = 129$, so $2^7 = -1 \mod 43$. Now $546 = 7 \cdot 78$, so $2^{546} = (2^{7})^{78} = (-1)^{78} \mod 43 = 1 \mod 43$.