Three, (20 points) Find all possible values of the positive integer $n$ such that for such $n$, there exist real numbers $a$ and $b$ for which the function $f(x)=\frac{1}{n} x^{2}+a x+b$ is an integer for any integer $x$.

---

Please note that the translation retains the original formatting and structure of the text, including the use of mathematical notation.