We have the following sequences of functions: $$f_n(x)=1_{[\frac{1}{n+1}, \frac{1}{n}]}(x)$$ $$g_n(x)=\frac{1}{n}1_{[\frac{1}{n+1}, \frac{1}{n}]}(x)$$ $$h_n(x)=1_{[\frac{1}{(n+1)^2}, \frac{1}{n^2}]}(x)$$
All these functions are defined in $[0,1]$
Which of the following functions converge uniformly??
Now it is not difficult to see that all these sequences converge pointwise to $0$
Also $$\sup_{x \in [0,1]}|f_n(x)|=\sup_{x \in [0,1]}|h_n(x)|=1$$ proving that these sequences do not converge uniformly.
And $$\sup_{x \in [0,1]}|g_n(x)|= \frac{1}{n} \rightarrow 0$$
Therefore the only sequencce that converges uniformly is $g_n$
Is this correct or am i missing something?
Thank you in advance.