EDITED
Sorry, the question was wrong. Please forgive me for this.
Suppose a quadratic function $f(x) = ax^2+bx+c$, what I want to know is if in an integer $x$, say $x=1, x=2, x=3, ...$, the function has also a corresponding integer value of $y$ or not ($y=1, y=2, y=5, ...$). Is there a way?
Hint: Set up $$ a(x- \alpha_1)(x - \alpha_2) = a x^2 + b x +c $$
where: $\alpha_1 , \alpha_2 \in \mathbb{Z}$ are the integer roots of the quadratic equation.
After that $\alpha_1 + \alpha_2 = - \frac{b}{a} ; \alpha_1 \alpha_2 = \frac{c}{a}$
I just realized that the above equations follow Vieta's formulas, then you can consider the cases to $\alpha_1 , \alpha_2 \in \mathbb{Z}$