I'd like to understand the costruction of the following function we should statisfy the requests of the title. We define $S_{n} := \sum\limits_{k=1}^{n}\frac{1}{k}$, with $a_{n} := S_{n} - \lfloor S_{n}\rfloor = S_{n} \hspace{0.1cm} \mbox{mod}\hspace{0.1cm}(1)$ and we set $f_{n} := \chi_{[a_{n},a_{n+1}]}$.
It holds that $|a_{n}-a_{n+1}| = \frac{1}{n}$ and that $f_{n} \overset{\left\lVert .\right\rVert{.}_{1}}{\longmapsto} 0$ in $L^{1}([0,1])$, but not converging to $0$ almost everywhere, it should be true that $f_{n} = 1$ for infinite values.
What I don't understand is the costruction of $S_{n}$ which I think carries all the other properties I should verify. In particular it's not obvious to me that $|a_{n}-a_{n+1}| = \frac{1}{n}$ and $f_{n} = 1$ for infinite values.
Any help or hint would be appreciated.