Let $E=\{x=(x_n)\in \ell^\infty(\Bbb N): (x_n)~~\text{is periodic}\}$
Defintion: $x=(x_n)$ is periodic means there exists $p\in \Bbb N$ such that, $x_{n+p} =x_n ~~~\forall ~~n\in\Bbb N.$
we define on $E$ the distance $$d(x,y) =\|x-y\|_\infty$$
Prove that $(E,d)$ is not complete. I don't how to prove this. thanks for help
By contradiction we assume that E is complete
Consider the map $T:E\to E$ such that for $x= (x_n)_n$ we have $$Tx= \left(0,\frac{x_0 +1}{2},0,\frac{x_1 +1}{2},0,\frac{x_2 +1}{2}, \cdots\right) $$
That is $(Tx)_{2n} =0$ and $(Tx)_{2n +1} =\frac{x_n +1}{2}$. Clearly, for $x,y\in E$ we have, $$\|T(x-y)\|_\infty \le\frac{1}{2}\|x-y\|_\infty$$
That is T is contraction since E is complete then any contraction on $E$ should have a fix point. Let $u\in E$ such that $$u =Tu = \left(0,\frac{u_0 +1}{2},0,\frac{u_1 +1}{2},0,\frac{u_2 +1}{2}, \cdots\right) $$
Therefore, $$\begin{cases}u_{2n} = 0\\ u_{2n+1} =\frac{u_n+1}{2}\end{cases}$$
the relation $u_{2n+1} =\frac{u_n+1}{2}$ with $u_1 =\frac{u_0+1}{2}=\frac{1}{2}$ clearly shows that $(u_n)_n$ is not periodic. In fact,
$$ u_3 =\frac{u_2+1}{2} =\frac{1}{2}, u_7=\frac{u_3+1}{2} =\frac{\frac12+1}{2} = \frac34,$$$$u_{15}=\frac{u_7+1}{2} =\frac{\frac34+1}{2} = \frac78, u_{31}=\frac{u_{15}+1}{2} =\frac{\frac78+1}{2} = \frac{15}{16}\cdots$$
With further investigation one glimpses that if we set $a_n =u_{4n-1}$ then $$a_{n+1} =\frac{a_n +1}{2}~~~\text{which is not periodic}$$