Show that $3^{7^n}+5^{7^n}\equiv 1 \pmod{7^{n+1}}$
I tried to induct on n:
For $n = 0$ we have $3+5 = 8$ and $8 \equiv 1 \pmod{7^{n+1}}$.
Suppose it is true for $n = k$:
$$3^{7^k}+5^{7^k}\equiv 1 \pmod{7^{k+1}}$$
so $3^{7^k}+5^{7^k}=7^{k+1}*q_1+1$
For $n = k+1$: $$3^{7^{k+1}}+5^{7^{k+1}}\equiv r \pmod{7^{k+2}}$$
so $3^{7^{k+1}}+5^{7^{k+1}}=7^{k+2}*q_2+r$
Now if we subtract them we get that:
$$3^{7^{k+1}}+5^{7^{k+1}}-3^{7^k}-5^{7^k}=7^{k+1}(7q_2-q1)+r-1$$
From Euler's theorem we know that $a^{\phi(7^{k+1})}\equiv 1 \pmod{7^{k+1}}$ and $\phi(7^{k+1}) = 6\cdot7^{k}$ so $3^{6\cdot7^{k}}\equiv 1 \pmod{7^{k+1}}$ and $5^{6 \cdot 7^{k}}\equiv 1 \pmod{7^{k+1}}$.
So $3^{7^{k+1}}+5^{7^{k+1}}-3^{7^k}-5^{7^k}\equiv3^{7^k}\cdot3^{6\cdot{7^{k}}}+5^{7^k}\cdot5^{6\cdot{7^{k}}}-3^{7^k}-5^{7^k}\equiv 0 \pmod{7^{k+1}}$
Finally I get that $r\equiv1\pmod{7^{k+1}}$.
Here I got stuck. I don't know how to show that $r=1$.
We will need the following useful result: If $x\equiv1\pmod{7^k}$ then $x^7\equiv1\pmod{7^{k+1}}$. To see why this is true, write $x$ as $x=1+7^km$ and apply the binomial theorem.
Now suppose that $3^{7^k}+5^{7^k}\equiv1\pmod{7^{k+1}}$. By the useful result, $$\left(3^{7^k}+5^{7^k}\right)^7\equiv1\pmod{7^{k+2}}.$$ Then \begin{align*} 3^{7^{k+1}}&+7\cdot3^{6\cdot7^k}5^{7^k}+21\cdot3^{5\cdot7^k}5^{2\cdot7^k}+35\cdot3^{4\cdot7^k}5^{3\cdot7^k}\\&+35\cdot3^{3\cdot7^k}5^{4\cdot7^k}+21\cdot3^{2\cdot7^k}5^{5\cdot7^k}+7\cdot3^{7^k}5^{6\cdot7^k}+5^{7^{k+1}}\equiv1\pmod{7^{k+2}}. \end{align*} We want to show that $3^{7^{k+1}}+5^{7^{k+1}}\equiv1\pmod{7^{k+2}}$. Then it suffices to show that \begin{align*} 7\cdot3^{6\cdot7^k}5^{7^k}&+21\cdot3^{5\cdot7^k}5^{2\cdot7^k}+35\cdot3^{4\cdot7^k}5^{3\cdot7^k}\\&+35\cdot3^{3\cdot7^k}5^{4\cdot7^k}+21\cdot3^{2\cdot7^k}5^{5\cdot7^k}+7\cdot3^{7^k}5^{6\cdot7^k}\equiv0\pmod{7^{k+2}}. \end{align*} By dividing through by $7$, it suffices to show that $$3^{6\cdot7^k}5^{7^k}+3\cdot3^{5\cdot7^k}5^{2\cdot7^k}+5\cdot3^{4\cdot7^k}5^{3\cdot7^k}+5\cdot3^{3\cdot7^k}5^{4\cdot7^k}+3\cdot3^{2\cdot7^k}5^{5\cdot7^k}+3^{7^k}5^{6\cdot7^k}\equiv0\pmod{7^{k+1}}.$$ Now $3\cdot5\equiv1\pmod7$ so inductively applying the useful result shows that $3^{7^k}5^{7^k}\equiv1\pmod{7^{k+1}}$. Then it suffices to show that $$3^{5\cdot7^k}+3\cdot3^{3\cdot7^k}+5\cdot3^{7^k}+5\cdot5^{7^k}+3\cdot5^{3\cdot7^k}+5^{5\cdot7^k}\equiv0\pmod{7^{k+1}}.$$ Finally, $3^{7^k}+5^{7^k}\equiv1\pmod{7^{k+1}}$ so it suffices to show that $$3^{5\cdot7^k}+3\cdot3^{3\cdot7^k}+3\cdot5^{3\cdot7^k}+5^{5\cdot7^k}\equiv-5\pmod{7^{k+1}}.\qquad\qquad(1)$$
Taking fifth powers of the congruence $3^{7^k}+5^{7^k}\equiv1\pmod{7^{k+1}}$ shows that $$3^{5\cdot7^k}+5\cdot3^{4\cdot7^k}5^{7^k}+10\cdot3^{3\cdot7^k}5^{2\cdot7^k}+10\cdot3^{2\cdot7^k}5^{3\cdot7^k}+5\cdot3^{7^k}5^{4\cdot7^k}+5^{5\cdot7^k}\equiv1\pmod{7^{k+1}}.$$ Again, $3^{7^k}5^{7^k}\equiv1\pmod{7^{k+1}}$ so $$3^{5\cdot7^k}+5\cdot3^{3\cdot7^k}+10\cdot3^{7^k}+10\cdot5^{7^k}+5\cdot5^{3\cdot7^k}+5^{5\cdot7^k}\equiv1\pmod{7^{k+1}}.$$ Again, $3^{7^k}+5^{7^k}\equiv1\pmod{7^{k+1}}$ so $$3^{5\cdot7^k}+5\cdot3^{3\cdot7^k}+5\cdot5^{3\cdot7^k}+5^{5\cdot7^k}\equiv-9\pmod{7^{k+1}}.\qquad\qquad(2)$$
Taking third powers of the congruence $3^{7^k}+5^{7^k}\equiv1\pmod{7^{k+1}}$ shows that $$3^{3\cdot7^k}+3\cdot3^{2\cdot7^k}5^{7^k}+3\cdot3^{7^k}5^{2\cdot7^k}+5^{3\cdot7^k}\equiv1\pmod{7^{k+1}}.$$ Again, $3^{7^k}5^{7^k}\equiv1\pmod{7^{k+1}}$ so $$3^{3\cdot7^k}+3\cdot3^{7^k}+3\cdot5^{7^k}+5^{3\cdot7^k}\equiv1\pmod{7^{k+1}}.$$ Again, $3^{7^k}+5^{7^k}\equiv1\pmod{7^{k+1}}$ so $$3^{3\cdot7^k}+5^{3\cdot7^k}\equiv-2\pmod{7^{k+1}}.$$ Multiplying through by $-2$ shows that $$-2\cdot3^{3\cdot7^k}-2\cdot5^{3\cdot7^k}\equiv4\pmod{7^{k+1}}.\qquad\qquad(3)$$
Adding Equations (2) and (3) gives Equation (1).