Find the infimum,supremum,maximum and minimum of the following set or prove non existence: $$E = \{\frac{p}{q} \in \mathbb{Q}: p^{2} < 2q^{2}, p,q >0 \}.$$
This question is solved in the following:
But I did not understand why he said that $\omega$ (as he defined in the second picture) is a rational number, Could anyone explain this for me?


I think that $[{}\cdot {}]$, as it appears in the first numerator in the definition of $w$, is the floor function (also called the greatest integer function). That makes $[(n+1)s]$ an integer (the greatest integer $m$ such that $m \leq [(n+1)s]$, by definition), so all numerators and denominators in the definition of $w$ are integers, which makes $w$ rational.