## Continuous function [closed]

Suppose $f(x) = \begin{cases} 0 \ \ \text{if} \ x \ \text{is irrational} \newline \frac{1}{n} \ \ \text{if} \ x = m/n \ \text{in lowest form} \end{cases}$

To show that $f$ is continuous at all irrational numbers in $(0,1)$ let $a$ be an irrational in the interval. Let $\epsilon$ be given. Choose $q$ such that $1/q < \epsilon$. Why are thee are at most $1+2+ \cdots + (q-1)$ rationals in $(0,1)$ of the form $m/n$ where \$n

-
homework problem? – Daniel Pomerleano Sep 1 2010 at 22:14
This is a standard example in introductory real analysis, and without further explanation it looks like homework. – MTS Sep 1 2010 at 22:40