Question: Prove $5^{2n+1} + 11^{2n+1} + 17^{2n+1}$ is divisible by $33$
Proposed Solution (textbook):
Let $p = 2n+1.$ Assume that $5^p + 11^p + 17^p$ divides by $33$ and prove that $5^{p+2} + 11^{p+2} + 17^{p+2}$ divides by $33$ which means we need to prove that $25\cdot5^p+121\cdot11^p+289\cdot17^p$ divides by 33.
Since we know that $5^p + 11^p + 17^p$ divides by $33,$ we can subtract it $25$ times and all we have to prove is that $96\cdot11^p+264\cdot17^p$ divides by $33.$
[Rest of proof omitted here as obvious & unrelated to my query.]
My Question:
The last procedure ("subtract it 25 times") seems odd. Perhaps it works for this particular problem, but I've never come across such methods before. Is this approach even valid?
EDIT: I now realise it's much easier to explicitly write down the factorisation step as well - i.e letting $f(k) = 25\cdot5^p+121\cdot11^p+289\cdot17^p$ ----> $f(k+1) = 25\cdot[5^p + 11^p + 17^p] - (121-25)\cdot11^p - (289-25)\cdot17^p$) ----> $f(k+1) = 25\cdot f(k) - 33\cdot[32\cdot11^{p-1} - 8\cdot17^p$]