Letting $n\to\infty$ gives
$$f(0)=\frac12.$$
Also
$$f(1/n)=\frac1{2-1/n}.$$
By the identity theorem, applied at $z=0$,
$$f(z)=\frac1{2-z}$$
in a neighbourhood of zero. But this will continue to a function
with a pole at $z=2$.
1
Bumbble Comm
On
With $x=\frac{1}{n}$ we get $$f(x)=\frac{\frac{1}{x}}{\frac{2}{x}-1}=\frac{1}{2-x}$$
Letting $n\to\infty$ gives $$f(0)=\frac12.$$ Also $$f(1/n)=\frac1{2-1/n}.$$ By the identity theorem, applied at $z=0$, $$f(z)=\frac1{2-z}$$ in a neighbourhood of zero. But this will continue to a function with a pole at $z=2$.