- #36
- 19,753
- 25,757
##3\,|\,64959## but not the other way around. The key words here are the Legendre symbol and the Chinese remainder theorem.QuantumP7 said:5.(b) Show that there is an integer ##a \in \mathbb{Z}## such that 64959| ## (a^{2} - 7)##
Answer:
We can see that 3 divides 64959 because its digits add up to a multiple of 3 (6+4+9+5+9 = 33 = 3+3=6). (If necessary, I can explain why. Just let me know.) So, we need to find an integer a such that ##a^{2}-7## is a number that is 3 or 3 x ##10^{n}##. Honestly, I brute forced this, and came up with a = 2. ##2^2-7 = 4-7=-3## which definitely divides 64959 (64959 = -3 * -21653).
As of part 5.a.), your solution
is correct, but a hint to Euler's theorem would have been fine:QuantumP7 said:##3^{2405} = 3^{5+2400} = (3^{5})(3^{2400})##
##3^{400} \equiv 1(mod 1000)## so ##3^{2400} \equiv 1(mod 1000)##
Then, ##3^{2405} = (3^{5})(3^{2400}) \equiv (243*1)(mod 1000)##, so that the last 3 digits of ##3^{2405}## are 243.
$$
3^{\varphi(n)} \equiv 1 \,\operatorname{mod} n \\[12pt]
\varphi(1000) = \# \text{ numbers from 1 to 1000 which are relatively prime to 1000 } = \varphi(8) \varphi(125)=\varphi(2^3) \varphi(5^3)=2^3 \left(1- \dfrac{1}{2} \right) 5^3 \left(1- \dfrac{1}{5} \right) = 400
$$
and thus ##3^{400} \equiv 1 \,\operatorname{mod} 1000## is the information which really counted.