The metric space of bounded, real value functions is $B(S)$, whose domain is $S$. The metric is $d(f,g) = \sup[|f(s)-g(s)|] : s \in S $. The problem is to show that $B(S)$ is separable iff $S$ is finite.
The authors, Gamelin and Greene of "Introducton to Topology", offer a hint: For any subsets $T$ of $S$, the balls $B(\mathcal{X}_T,\frac1 2)$ are disjoint, where $\mathcal{X}_T$ is the characteristic function for T.
I see that if the subsets T are disjoint, then the distances between them are $1$, greater than $1/2$, and consequently the balls are disjoint. I should like to show that the space $B(S)$ is totally bounded iff S is finite, for then it is separable. I must then show that any element of $B$ belongs to a finite covering by open balls of $B(S)$ of given radius. I have not been able to do this with a covering by the balls of the preceding paragraph.