Prove that $3^n|4^{3^{n-1}}-1$, but $3^{n+1}\not|4^{3^{n-1}}-1$ for all $n\in\mathbb N$.
I am unfortunately stuck in trying to prove this problem. It is obviously an exercise in mathematical induction. It is extremely easy to show the base cases for mathematical induction for $n=1$ and $n=2$, so I will not do those here.
I assume that our inductive hypothesis is to say that $3^k|4^{3^{k-1}}-1$, but $3^{k+1}\not|4^{3^{k-1}}-1$ for some natural number $k$. Now we need to show that $3^{k+1}|4^{3^{k}}-1$, but $3^{k+2}\not|4^{3^{k}}-1$. I started off by letting $x^3 = 4^{3^{k}}$. Then $x = \left(4^{3^{k}}\right)^{1/3} = 4^{3^{k}\over 3} = 4^{3^{k-1}}$. So, $$\begin{align}4^{3^k} - 1 &= x^3 - 1\\&=(x-1)(x^2+x+1) \tag{Difference of cubes}\\ &=(4^{3^{k-1}}-1)(4^{2\cdot3^{k-1}}+4^{3^{k-1}}+1).\end{align}$$ Something isn't quite lining up with what I expect to happen. We know that $3^{k+1}$ is not supposed to divide $4^{3^{k-1}}-1$ by our inductive hypothesis. So, this won't cancel out in the above like I'd hope for it to. That would have to mean the other stuff will cancel out, but it is not immediately clear how this happens. Or did I miss something completely important?
For the record, a much younger student brought this question to me, and I just got a little stuck in trying to work it out.