Powerful factors

Use the fact that: x²-y² = (x-y)(x+y) and x³+y³ = (x+y) (x²-xy+y²) to find the highest power of 2 and the highest power of 3 which divide 5^{36}-1.

Problem



Use the following identities:

$x^2-y^2 \equiv (x-y)(x+y)$

and

$x^3+y^3 \equiv (x+y)(x^2-xy+y^2)$

to find the highest power of $2$ and the highest power of $3$ which divide $5^{36}-1$.