For an integer $x$, let $spn(x)$ be defined by:
$$spn(x) =
\begin{cases}
0, & \text{if $x$ is even} \\
1, & \text{if $x$ is odd}
\end{cases}$$
To keep things consistent with the properties of odds and evens, we have:
$$spn(xy) = spn(x)spn(y)$$
$$spn(x^n) = spn(x)$$
$$spn(x+y) = spn(x) + spn(y) \space \space (mod \space 2)$$
For example,
$$spn(x^2+5x+1) = spn(x^2)+spn(5)spn(x)+spn(1) \space \space (mod \space 2)$$
$$=spn(x)+spn(x)+1 \space \space (mod \space 2) = 2spn(x) + 1\space\space(mod \space 2) = 1$$
Thus
$$spn(x^2+5x+1) = 1 \space\space\space\space\space\space\space\space\text{for all integers x}$$
And so, $x^2+5x+1$ always produces odd numbers for an integer $x$. For generality, let the $m^{th}$ degree polynomial $p(x)$ with integer coefficients $c_n$ be defined as:
$$p(x) = c_0 + \sum_{n=1}^m c_n x^n$$
$$spn(p(x)) = spn(c_0) + spn(x)\sum_{n=1}^m spn(c_n)\space\space(mod \space 2)$$
if $x$ is even,
$$spn(p(x)) = spn(c_0)$$
if $x$ is odd,
$$spn(p(x)) = \sum_{n=0}^m spn(c_n)\space\space(mod \space 2)$$
From the earlier example, we can then conclude that $spn(x^2+5x+1) = 1$ for all integers $x$ because $spn(c_0) = spn(1) = 1$ and $\sum_{n=0}^2 spn(c_n)\space\space(mod \space 2) = spn(1) + spn(5) + spn(1) \space\space (mod\space 2) = 1$
Since $spn(c_0) = \sum_{n=0}^2 spn(c_n)\space\space(mod \space 2)=1$, $spn(x^2+5x+1) = 1$ for both even and odd integers $x$. Therefore, $x^2+5x+1$ only produces odd numbers for any integer $x$.
In general, an $n^{th}$ degree polynomial will produce only odd integer values for an integer $x$ if both $c_0$ and the sum off all coefficients is odd; and will only produce even values if $c_0$ is even and the sum of all coefficients is even. If $c_0$ is odd and the sum of coefficients is even, $p(x)$ will produce odd values for even $x$ and even values for odd $x$. If $c_0$ is even and the sum of coefficients is odd, $p(x)$ will produce even values for odd $x$ and odd values for even $x$.