0

Consider the function $f:[0,1]\to\mathbf{R}$, with

$$f(x)=\begin{cases}\frac{1}{b} ,\quad x=\frac{a}{b}\in[0,1]\cap\mathbf{Q}, \ (a,b)=1 \\ 0 , \quad x \in [0,1]\cap\mathbf{Q}^{c} \text{ or } x=0 \end{cases}$$

Prove that $f$ is continuous for every $r\in [0,1]\cap\mathbf{Q}^{c}$

Could I have some kind of hint or help?

karhas
  • 695

2 Answers2

3

If $\varepsilon > 0$ and $x$ is irrational, take an $N \in \mathbb N$ with $1/N < \varepsilon$. There are only finitely many rationals $p/q \in[x-1, x+1]$ where $(p,q) = 1$ and $q \le N$. Since none of these are equal to $x$, take $\delta$ small enough so that $(x-\delta, x+\delta)$ does not contain of these rationals. This $\delta$ will prove continuity.

User8128
  • 15,835
1

Choose an irrational $p\in[0,1]$, given any $\epsilon>0$, let $N:=\lceil1/\epsilon\rceil$. Enumerate every $b/a\in\Bbb Q\cap[0,1],\,(a,b)=1,\,a\le N$ as $q_1,\cdots,q_m$. Now choose $$\delta:=\min_{1\le k\le m}|p-q_k|. $$

Vim
  • 13,905