For which real numbers $q$ is $n = 1/20 q^5 – 1/4 q^3 + 1/5 q$ an integer?
Modified, it reads $n = 1/20(q^5 - 5q^3 +4q)$ and it directly follows that $q=1$ is an answer. But it seems that $n$ is an integer for all $q$ that are integers too. How can I prove this?
This is one explanation for why it holds for all integer values of $q$:
$n = 1/20 (q^5 - 5q^3 + 4q)$ can be factored on the right
$n = 1/20 (q) (q^4 - 5 q^2 + 4) = 1/20 (q) (q^2 - 4)(q^2 - 1)$
$ = 1/20 (q) (q + 2)(q - 2)(q + 1)(q - 1)$ and then rearranging some factors we get
$ = 1/20 (q - 2) (q - 1)(q)(q + 1)( q + 2)$
So in $q-2$, $q - 1$,$q$, $q+1$, and $q + 2$ we have five consecutive integers.
For the cases of $q = -2$, $q = -1$, $q = 0$, $q = 1$, and $q = 2$, we get the $0$ for $n$, clearly an integer.
Otherwise, we get either five consecutive negative or five consecutive positive integers for those factors. One will be a multiple of $5$ and at least one will be a multiple of $4$. So their product is guaranteed to be a multiple of $20$, and $1/20$ of that product will therefore be an integer.