I tryed a lot of ways to prove that and I can't.
My formula is:
$$ 2\cdot8^n+3\cdot15^n+2 $$
And I need to prove if is divisible by 7. Recently I got:
$$ 2\cdot8^1+3\cdot15^1+2 $$ $$ 63 $$
And with K+1 is:
$$ 2\cdot8^{k+1}+3\cdot15^{k+1}+2 $$ $$ \text{OR} $$ $$ 2^{3k+4}+3^{K+2}\cdot5^{k+1}+2 $$
But i can't find a solution... /:
$$ 2\cdot8^n+3\cdot15^n+2 $$ By Hyphotesis is divisible by $7$.
Then you need to prove that $$ 2\cdot8^{n+1}+3\cdot15^{n+1}+2 $$ is divisible by $7$
Substract the two expressions: $$ 2\cdot8^{n+1}-2\cdot8^{n}+3\cdot15^{n+1}-3\cdot15^{n+1}$$ $$ 2\cdot8^{n}\left(8-1\right)+3\cdot15^{n+1}\left(15-1\right)$$ $$ 2\cdot8^{n}\left(7\right)+3\cdot15^{n+1}\left(14\right)$$ Which is clearly divisible by $7$, then if $a-b$ and $b$ are divisible by $7$ then $a$ is divisible by $7$.