Suppose that $a$ and $b$ are positive irrational numbers, where $a < b$. Choose any positive integer $n$ such that $1/n < b - a$, and let $p$ be the greatest integer such that $p/n < a$.
Prove that the rational number $(p + 1)/n$ lies between $a$ and $b$.
I’ve been stuck on this question, attempting to merge all of the inequalities into one equation, such that $$ \frac{p}{n} < a < \frac{1}{n} + a < b $$ Can anyone advise me on how to properly solve this equation. I’ve reached a dead end and feel like I’ve done something wrong. Any help is appreciated, thanks!
$p$ is defined so $na-1\le p\lt na$,
so $na\le p+1\lt na+1$,
so $a\le \dfrac{p+1}n\lt a+\dfrac1n<b$, since $\dfrac1n<b-a$,
and, since $a$ is irrational, we can't have $a=\dfrac{p+1}n$.