Prove that $(2n-1)(3^n)+1$ is always divisible by 4.

72 Views Asked by At

Prove that $(2n-1)(3^n)+1 ≡ 0 \pmod 4$.

1

There are 1 best solutions below

1
On

HINT: $3 \equiv -1 \pmod 4$. Hence when $n$ is odd $3^n \equiv -1 \pmod 4$, while $3^n \equiv 1 \pmod 4$ when $n$ is even. Now cosider the two cases of $n$ even and $n$ odd.