0

If $r$ is irrational, there is a unique integer $n$ with $|r- n|<1/2$

There are $$|n−m|\le |r−n|+|r−m|< \frac12 + \frac12 =1$$ in the answer, I understood all the steps except the relation of $|n−m|\le$ , how can we know $|n−m|\le|r−n|+|r−m|$

Our information:

  • $|r−n|<1/2$
  • $|r−m|<1/2$
  • $|r−n|+|r−m|<1/2+1/2$

So how can we get $|n−m| \le |r−n|+|r−m|<1/2+1/2$

Thanks

gt6989b
  • 54,422

1 Answers1

0

Key step is a variant of triangle inequality $|a-b| \le |a| + |b|$. You have $$ |n-m| = |(n-r) - (m-r)| \le |n-r| + |m-r| = |r-n|+|r-m| $$

gt6989b
  • 54,422