Let $p$ be a prime number. Prove that there exists $x∈Z$ for which $p|x^2−x+ 3$ if and only if there exists $y∈Z$ for which $p|y^2−y+ 25$.
I've copied the question verbatim from an elementary number theory assignment. I'm not making much ground on it, but here's what I've determined so far:
Each equation is based on the following sequence:
x^2 - x: 0, 2, 6, 12, 20, 30, 42, 56, 72, ...
I'm not sure what to call this type of sequence, but I'm thinking of it as a sequence with an acceleration of $2$, as in, each number on the sequence is increased by a number which is increased by $2$ each iteration.
The only difference between the two equations is the starting point of the sequence: one starts at $3$ while the other starts at $25$. This is how I have been thinking about the problem but unfortunately I think I'm working in the wrong direction.
If anyone could help me move in the right direction of this problem, I would appreciate it