Thomae's Function

Consider the following function:

t(x)={1x=01nx=mnQ{0} is in lowest terms with n>00xQ

If cQ then t(c)>0. Because the I is dense in R then we can find a sequence yn in I converging to c. The result is that:

limnt(yn)=0t(c)

and Thomae's Function fails to be continuous at any rational point.

Pasted image 20241109001829.png

However, what if we consider a specific point c=2 that's irrational. Because all the values are now irrational, then via t they all get mapped to 0. Consider such a sequence (xn)Q where xn2. The idea is that xn are approximations to 2. For example it might be:

xn{1,1410,14141000,1414210000,141421100000,}

But notice that the denominators of these fractions are getting larger. In this case, the sequence of t(xn) begins,

t(xn){1,15,1100,1500,15000,1100000,}

and is fast approaching 0=t(2). We will see that this always happens, and as a consequence it has the bizarre property of being continuous at every irrational point on R and discontinuous at every rational point.