Let $\{f_n\}$ be a sequence of real nonnegative functions on $\mathbb{R}$
Given $f_n(x)=\begin{cases} 1 \ \text{if x} \in [\frac{1}{n+1} ,\frac{1}{n}] \\ 0 \ \text{if x} \notin [\frac{1}{n+1} ,\frac{1}{n}] \end{cases}$
My question: find the $ \sum_{1}^n f_k ?$ and find the $ \sum_{1}^{\infty} f_k?$
My attempt : Given $f_n(x)=\begin{cases} 1 \ \text{if x} \in [\frac{1}{n+1} ,\frac{1}{n}] \\ 0 \ \text{if x} \notin [\frac{1}{n+1} ,\frac{1}{n}] \end{cases}$
$f_1 + f_2 +....+f_n=\sum f_k=\begin{cases} n \ \text{if x} \in [\frac{1}{n+1} ,\frac{1}{n}] \\ 0 \ \text{if x} \notin [\frac{1}{n+1} ,\frac{1}{n}] \end{cases}$
Is it true ?
For $ \sum_{1}^{\infty} f_k$
$f_1 + f_2 +....+f_n+....=\sum f_k=\begin{cases} \infty \ \text{if x} \in [\frac{1}{n+1} ,\frac{1}{n}] \\ 0 \ \text{if x} \notin [\frac{1}{n+1} ,\frac{1}{n}] \end{cases}$
Is it true ?