Problem

Source: 2013 Saudi Arabia Pre-TST 2.1

Tags: number theory, remainder, divides, divisible



Prove that if $a$ is an integer relatively prime with $35$ then $(a^4 - 1)(a^4 + 15a^2 + 1) \equiv 0$ mod $35$.