The function
Let
Put
Solve further.
As the root has to be positive or zero. So,
Therefore,
Denominator is also a root. But denominator cannot be 0 or negative. So,
From above conditions the range of function is positive integer, including 0, and approaches
Thus, the range of function is