i have a bounded sequence $(\lambda_n)_{n=1}^{\infty}$ in $\mathbb{R}$ and $T \in \mathrm{L}(\ell^{p})$ with $1\leq p \leq \infty$ such that $Tx=(\lambda_{1}x_{1},\lambda_{2}x_{2},\dots)$ , where $x=(x_{1},x_{2},\dots)$ my question is if $\lambda_{n} \to 0$ then $T$ is a compact operator. A classmate gave me a tip to use Cantor diagonal argument. But i don't know how to do that. Any help?
$\mathrm{L}(\ell^{p})$ is the set of continuous linear operators in $\ell^{p}$.
Thanks