Proposition (Fejér kernel)
Define the Fejér kernel $$ \begin{align*} K_N(t) := \frac{1}{N+1} \sum_{n=0}^{N} D_n(t) = \begin{cases} \displaystyle\frac{1}{N+1} \left(\frac{\sin \frac{N+1}{2}t}{\sin \frac{1}{2}t}\right)^2, &t\not\in 2π\Z, \\ N+1, &t\in 2π\Z \end{cases} \end{align*} $$ where $D_n$ is the $n$-th Dirichlet kernel, and write for $f\in C(\mathbb{T})$ $$ \begin{align*} σ_N(f) := f * K_N = \frac{1}{N+1}\sum_{n=0}^{N} S_n(f) = \frac{1}{N+1}\sum_{n=0}^{N} \sum_{k=-n}^{n} \hat f_k e^{ikt}. \end{align*} $$
Then $K_N$ is an approximate identity, so $$ \begin{align*} σ_N(f) \tto f \qquad \text{in $C(\mathbb{T})$}. \end{align*} $$
This demonstrates the Stone-Weierstrass theorem: the trigonometric polynomials $\set{\sum_{n=-N}^{N} a_n e^{int}}$ is dense in $C(\mathbb{T})$.