I am working on a worksheet on number theory and I have to solve the following congruences:
$$7^{128}=n\mod 13$$ Find $n$. And $$28x^2=1\mod37$$ How should I solve these congruences? I have no clue about the first one but for the second one I suspect I should solve the quadratic equation $28x^2-1=0$.
For example trying a little exponents:
$$7^2=10\pmod{13}\;,\;\;7^3=7\cdot 10=5\pmod{13}\;,\;\;7^4=35=9=-4\pmod{13},$$
$$7^5=-28=-2\pmod{13}\;,\;\;7^6=-14=-1\pmod{13}$$
Thus
$$7^{128}=(7^6)^{21}\cdot7^2=(-1)^{-21}\cdot10=-10=3\pmod{13}$$
For the other one (all the time with arithmetic modulo $\;37\;$):
$$28x^2=-9x^2\implies -9x^2=1\implies x^2=-\frac19\stackrel{\text{Because}\,9\cdot4=-1}=-(-4)=4$$
and thus...