How does one find the supremum and infimum of an integer "sequenced" set such as
$$\bigcup_{i=1}^{\infty} [2+1/i, 5-1/i]$$
The problem that I'm having is that I use the following definition for e.g. $\inf$:
$x=\inf S$ if
(1) $\forall s \in S$, $x \leq s$ and
(2) $\forall \epsilon > 0$, $\exists s_{\epsilon} \in S$ s.t. $s_{\epsilon} \lt x+ \epsilon$.
Now since $\epsilon$ is a real number, then I'm having trouble seeing, how to pick $s_{\epsilon}$, when my set is sequenced in integers, rather than being continuous. Same thing for $\sup$.
In the continuous case I could pick $s_{\epsilon} = 2 + \frac{1}{\frac{2}{\epsilon}}$, but then I'd have trouble showing that $s_{\epsilon} \in \bigcup_{i=1}^{\infty} [2+1/i, 5-1/i]$, even if $s_{\epsilon} = 2 + \frac{\epsilon}{2} < 2 + \epsilon = x + \epsilon $.
Hint :
let us prove that $\;inf S=2$.
we have
$$(\forall x\in S )\;\; 2\leq x$$
now let $\epsilon>0$.
we look for $s_\epsilon \in S$ of the form
$s_\epsilon=2+\frac{1}{n}$ such that
$2+\frac{1}{n}<2+\epsilon$
or
$n>\frac{1}{\epsilon}$.
so, we can take $n=\lfloor \frac{1}{\epsilon} \rfloor +1$.
you can prove that $\;sup S=5$