I know that the answer to the question asked above is infinity, but i have a question like this- (-1)^f(x) = 1, Therefore, i need all even integral values of that f(x). How do I figure this out?
Say f(x)=(x^2)+4x-60
I know that the answer to the question asked above is infinity, but i have a question like this- (-1)^f(x) = 1, Therefore, i need all even integral values of that f(x). How do I figure this out?
Say f(x)=(x^2)+4x-60
For integer $x$, $$f(x)=(x+2)^2-64$$ is an even number iff $x+2$ is even.
Or
$$x^2+4x-60\equiv x^2\mod2$$ and it is obvious that squaring preserves parity.
Note that minimum effort would have been to try and observe the easy pattern
$$-60,-57,-48,-39,-28,-15,0\cdots$$
As noticed by @rishabh, if $x$ is not restricted to be an integer, the possible values are the solutions of the quadratic equations
$$x^2+4x-60=2n.$$
These values are all different, except for $n=0$ (and $x=-10$).
Similarly, the odd values occur at the roots of
$$x^2+4x-60=2n+1.$$