Define a sequence of functions on $\mathbb{R}$ by:
$$ f_n(x)=\begin{cases}1, & \text{if $x=1$, $1\over 2$ ,$1\over 3$,...,$1\over n$} \\ 0, & \text{otherwise} \end{cases} $$
and let $f$ be the point wise limit of $f_n $. Is each $f_n$ continuous at $0$? Does $f_n \rightarrow$f uniformly on $\mathbb{R}$? Is $f$ continuous at zero?
So basically this is what I know/where I am stuck:
+Having trouble computing $\lim_{n\to \infty}f_n(x)$. Would the limit be a piecewise function $$ f(x)=\begin{cases}1, & \text{if $0\lt x\le 1$ where $x=1$, $1\over 2$ ,$1\over 3$,...,$1\over n$} \\ 0, & \text{otherwise} \end{cases} $$ +I'm supposed to define the sequence on the set of real numbers but does that mean I should consider negative $x$ values, or $x$ values greater than $1$? Clearly when $x\lt 0$ or $x\gt 1$, $f(x)=0$, but I am having trouble determining whether or not $f_n$ is continuous at zero.
+I'm wondering if the Density of Rational in Real property comes into play here, Although $1\over n$ is a small subset of the rational.
(1) If $ 0< x< \frac{1}{n}$, then $$ |f_n(x)-f_n(0)|=0$$ Hence $f_n$ is continuous at $0$.
(2) If $f$ is a pointwise limit, then $f(\frac{1}{n})=1$ for all $n\in \mathbb{N}$ and $f(x)=0$ if $x$ is not in $\{ \frac{1}{n} \mid n\in \mathbb{N}\}$
: For large $m\ (>n)$, we have $$ | f(\frac{1}{n} ) - f_m (\frac{1}{n}) | < \epsilon $$
(3) Since $|f(0)- f(\frac{1}{n})| =1$ for all $n$, $f$ is not continuous at $0$
(4) Not uniform : ${\rm sup}_{x\in [0,1]} |f-f_n|(x) =1$