Find a function which has limit only in advanced marked points$(a_1,a_2,....a_n)$.
Here is my example.
$g(x) = \begin{cases} 1, & \text{if}~x\in\mathbb{Q} \\ 0, & \text{if}~x\in\Bbb{R}\backslash \Bbb{Q} \end{cases}$
$f(x) = (x-a_1)(x-a_2)...(x-a_n)g(x)$
But the problem I can't solve is that,is there a function which has limit only in advanced given $a_1,a_2...a_n....$ infinite points.