2

Give $f:\mathbb{R} \rightarrow \mathbb{R}$ defined as $f(x)=x$ if $x$ is irrational, $\displaystyle f\left(\frac{p}{q}\right)=q$ if $\displaystyle \frac{p}{q}$ is a irreductible fraction with $p>0$, $f(0)=0$. Show that $f$ is not bounded at any interval nondegenerate.

2 Answers2

1

Hint Pick some interval $[a,b]$ and some integer $n$.

Prove that for each $1 \leq k \leq n$ there are finitely many fractions with denominator $k$ in the interval. As there are infinitely many rational numbers, there must be one with denominator larger than $n$.

N. S.
  • 134,609
1

Let $I=(a,b)$, with $a<b$, and $q$ be a prime number, such that $$ q>\frac{1}{b-a}. $$ Such $q$ exists, as the primes are infinitely many.

Then, $$ a=\frac{aq}{q}<\frac{\lfloor aq\rfloor+1}{q}\le \frac{aq+1}{q}=a+\frac{1}{q}<a+(b-a)=b, $$ and hence $\displaystyle \frac{\lfloor aq\rfloor+1}{q}\in(a,b) $ and clearly $$ f\left(\frac{\lfloor aq\rfloor+1}{q}\right)=q. $$ Thus in every interval $f$ takes arbitrarily large values.