I'm trying to find the remainder of $\frac{2^{2010}}{35}$. The first two parts of the question asked for the remainder when dividing $2^{2010}$ by 5 and then by 7.
To solve for the first two problems, I used Euler's Theorem: $$2^{2010}=(2^{3})^{670}$$ Let $a=2$ and $n=5$, then $$2^{3}\equiv1\pmod 5$$ $$2^{2010}=(2^{3})^{670}\equiv1^{670}\equiv1\pmod5$$ And so I found that the remainder was 1 (please correct me if I made a mistake). I repeated the process for dividing by 7, and got the same result, the only difference where the exponents which did not effect the result.
How would I combine the two results, $2^{2010}\equiv1\pmod5$ and $2^{2010}\equiv1\pmod7$?
Another way:
$$2^4\equiv1\pmod5,2^3\equiv1\pmod7$$
$$\implies2^{\text{lcm}(3,4)}\equiv1\pmod{\text{lcm}(5,7)}$$
Now lcm$(5,7)=35$ and lcm$(3,4)=12,2010\equiv6\pmod{12}$
$$\implies2^{2010}\equiv2^6\pmod{35}\equiv?$$