What is $(3^1+3^2+\cdots+3^{2015})\bmod{8}?$
I'm really bad at these kinds of problems so a thorough explanation would be much appreciated.
What is $(3^1+3^2+\cdots+3^{2015})\bmod{8}?$
I'm really bad at these kinds of problems so a thorough explanation would be much appreciated.
On
Hint: $3^1+3^2+\cdots+3^{2015}=\dfrac{3^{2016}-3}{3^1-1}=\dfrac{3^{2016}-3}{2}=\dfrac{3^{2(1008)}-3}{2}\equiv $ what? (mod $8$)
On
Hint:
As $3$ has order $2\bmod 8$, you have $$3^n\equiv\begin{cases}3&\text{if }n\text{ is odd},\\ 1&\text{if }n\text{ is even}. \end{cases}$$ Therefore $$\sum_{k=0}^{2015}3^k\equiv3\times(\text{number of odd integers}\le 2015)+(\text{number of even integers}\le2014)\mod 8.$$
As a hint, \begin{align} 3^1 &\equiv 3 \pmod 8\\ 3^2 &\equiv 1\pmod 8\\ 3^3 &\equiv 3\pmod 8 \\ 3^4 &\equiv 1\pmod 8\\ \end{align}
This gives a pattern $(3+1+3+1+\cdots) \bmod 8$ in your sum.