For what positive integer values $n$, is $2^n+1$ divisible by 3, but I am not sure how to proceed.
The only thing I can depict is that: $2^n-1 \equiv 0 \pmod{3} \implies 2^n \equiv -1 \pmod{3}$
Where do I go from here?
For what positive integer values $n$, is $2^n+1$ divisible by 3, but I am not sure how to proceed.
The only thing I can depict is that: $2^n-1 \equiv 0 \pmod{3} \implies 2^n \equiv -1 \pmod{3}$
Where do I go from here?
Hint:
$$2 \equiv -1 \pmod 3$$
$$2^n \equiv (-1)^n \pmod 3$$