Let A be a nonempty subset of $\mathbb R$ and let m be an upper bound of A. Prove that $m = supA$ iff $ \forall n \in \mathbb N, \exists a \in A, m < a + \frac 1n$.
I don't really have any idea where to start with this one. I've tried the following:
Let $x<m$. Then, $m-x>0$. Since $m-x$ is positive, there exists $n \in \mathbb N$ such that $m-x > \frac 1n$. So, $ m > x + \frac 1n$.
But, this is the opposite of what I need to prove.
Any hints on where to start or the right path to take would be greatly appreciated, thanks!
a) Let $m= \sup A$ and $n \in \mathbb N$. Then $m - \frac{1}{n}<m$, hence $m - \frac{1}{n}$ is not an upper bound of $A$, thus there is $a \in A$ such that $a > m - \frac{1}{n}$ .
b) Suppose that we have $\forall n \in \mathbb N, \exists a \in A: m < a + \frac 1n$.
Let $s= \sup A$ and assume, to the contrary, that $s \ne m.$ Then $s<m$, hence $m-s>0$. There is $n \in \mathbb N$ such that $\frac1n<m-s$.
There is $a \in A $ with $m<a+\frac1n.$ This gives $a>m- \frac1n>s,$ a contradiction.