Let $(c_0,\|\cdot\|_{\infty})$ be the normed space of real sequences convergent to $0$, with the maximum norm. I need to prove that the subspace $M = \{x=(x_n) \in c_0 \mid \sum_{n=1}^\infty x_n = 0\}$ is dense in $c_0$.
I am trying to find an $x\in M$ such that, for a given $\epsilon>0$ and a given $y\in c_0$; $\|x-y\|_{\infty}<\epsilon$ , but I'm struggling with it. I have tried to construct this $x \in M$ but since $y \in c_0$ is arbitrary, I don't know how to deal with it. I suspect I may need to try it by contradiction, but so far I'm stuck.
Thanks in advance!
Since $\lim_{n\to\infty}y_n=0$, there is an $N$ such that $|y_n|<\epsilon/2$ for all $n\ge N$. Let $S=\sum_{n=1}^Ny_n$ and choose an integer $M$ such that $|S|/M<\epsilon/2$. Let $$ x=(y_1,\dots,y_N,\underbrace{-\frac{S}{M},\dots,-\frac{S}{M}}_{M\text{ times}},0,0,\dots) $$