Find the $\sup$ and $\inf$ of $E=\{x\in\mathbb{R}\mid 1-\frac{1}{n} < x < 2-\frac{1}{n}, n \in \Bbb{N}\}$. Justify your answers
I claim that $\sup E = 2$ and $\inf E = 0$. Let $(1-1/n,2-1/n]$, then $\sup E = 2-1/n$ and $\inf E = 1-1/n $.
Case 1: $n\leq 0$, then $\sup E$ is $2$ and $\inf E$ is $1$.
Case 2: $n \geq 0$, then $\sup E$ is $1$ and $\inf E$ is $0$.
Case 3: $0 < x < 1$, then $\sup E$ is $2$ and $\inf E$ is $0$.
or do I even need to do cases?