I need to describe all natural numbers $n$ for which $3^{n}-2^{n}$ is divisible by $5$.
After testing out some $n \in \mathbb{N}$, I came to the conclusion that $3^{n} - 2^{n}$ is divisible by $5$ iff $n$ is even - i.e., if $n$ is of the form $2k$ for $k \in \mathbb{N}$.
Here is my attempt so far:
$(\implies)$:
To show that if $n$ is even, then $3^{n}-2^{n}$ is divisible by $5$, we prove that $\forall k \in N$, $3^{2k}-2^{2k} \equiv \,0 \mod 5$ by induction on $k$:
Basis Step: For $k = 1$, $3^{2(1)}-2^{2(1)}=3^{2}-2^{2}=9-4=5 \equiv\, 0 \mod 5 $.
Suppose true for $\mathbf{k=m}$: $3^{2m}-2^{2m}\equiv \, 0 \mod 5 \, \implies \, 3^{2m}-2^{2m}=5l$, $l \in \mathbb{Z}$.
Show true for $\mathbf{k = m+1}$: Consider $3^{2(m+1)}-2^{2(m+1)}\\ = 3^{2m+2}-2^{2m+2}\\ = 3^{2m}\cdot 3^{2}- 2^{2m}\cdot 2^{2}\\ = 9\cdot 3^{2m}-4 \cdot 2^{2m} \\= 5 \cdot 3^{2m} + 4\cdot 3^{2m} - 4 \cdot 2^{2m} \\ = 5(3^{2m}) + 4(3^{2m}-2^{2m}) \\ = 5(3^{2m})+4(5l)\, \text{(by the induction hypothesis)} \\ = 5(3^{2m} + 4l) \, \text{which is divisible by}\, 5.$
So, by induction, then the statement $3^{2k}-2^{2k} \equiv \, 0 \mod 5$ holds $\forall k \geq 1 \, \implies \, $ the statement $3^{n}-2^{n} \equiv \, 0 \mod 5$ holds $\forall n = 2k$, $k \geq 1$.
$(\Longleftarrow)$:
To show that $3^{n}-2^{n}$ divisible by $5$ $\implies$ $n$ even, we will show that $n$ odd $\implies$ $3^{n}-2^{n}$ is not divisible by $5$. Now, suppose the proposition is false. I.e., assume $\exists n \in \mathbb{N}$ for which $n$ is odd, but $3^{n}-2^{n}$ is divisible by $5$.
Since $n$ is odd, it is of the form $2k+1$, $k \in \mathbb{N}$.
So, we have that $3^{2k+1}-2^{2k+1} \equiv \, 0 \mod 5 \, \implies \, 3^{2k+1} - 2^{2k+1} = 5l$, $l \in \mathbb{N}$.
So, $\displaystyle \frac{3^{2k+1}}{5} - \frac{2^{2k+1}}{5} = l$.
At this point, I got stuck. I think my $(\implies)$ direction is fine, but I definitely need help on my $(\Longleftarrow)$ direction.
Could somebody please help me complete this proof?
Thank you.
$$3^{2k+1}-2^{2k+1}= 3(9^k)-2(4^k) \equiv 3(-1)^k-2(-1)^k=(-1)^k \mod 5$$
$$3^{2k}-2^{2k}= (9^k)-(4^k) \equiv (-1)^k-(-1)^k=0 \mod 5$$