Here's the statement of the Problem 4 after Section 2.5 in Introductory Functional Analysis With Applications by Erwine Kryszeg:
Show that for an infinite subset $M$ in the space $s$ to be compact, it is necessary that there are numbers $\gamma_1$, $\gamma_2$, $\ldots$ such that for all $x = (\xi_k(x)) \in M$, we have $\vert\xi_k(x)\vert \leq \gamma_k$. (It can be shown that the condition is also sufficient for the compactness of $M$.)
What does this condition say?
How to show this condition to be necessary and sufficient for compactness of the set $M$?
I know that $s$ is the metric space consisting of all sequences $x \colon= (\xi_i)$, $y \colon= (\eta_i)$ of complex numbers with the metric $d$ defined as follows: $$d(x,y) \colon= \sum_{i=1}^\infty \frac{\vert \xi_i - \eta_i \vert}{2^i(1+ \vert \xi_i - \eta_i \vert)}. $$
The condition says: for every $k$, the $k$th coordinate of $x\in M$ is uniformly bounded (independently of $x$) by some number $\gamma_k$. Geometrically, this means $M$ is contained in an infinite-dimensional rectangular box with sidelengths $2\gamma_1, 2\gamma_2,\dots$.
The necessity of this condition follows from the fact that the projection onto $k$th coordinate is a continuous function, and a continuous function on a compact set is bounded.
The sufficiency can be proved as follows: