For the equation $y = 4x^2 + 8x + 5$, what are the values of x such that y/5 is an integer?
For example, if x = 3, $y = 4(3^2) + 8(3) + 5$ = 65
if x = 5, y = 145
if x = 8, y = 325
Is there a formula to determine values of x that will result in a value of y that is divisible by 5?
You are looking for those integers $x$ such that $\frac{4x^2+8x+5}{5}$ is integer, that are the solutions of $$ x^2+2x \equiv 0 \pmod{5}. $$ Since $\mathbb{Z}_5$ is a field, this is equivalent to $x\equiv 0\pmod{5}$ or $x\equiv 3 \pmod{5}$.