this follows from the riemann integral problem earlier:

suppose function f: [0,1] R is defined as:

f(x) = 0 if x is irrational.

f(0) = 0,

f(p/q) = 1/q if p and q are natural numbers with no common factors.

now prove f is riemann integrable on [0,1] and determine

i've worked it out but im not sure if this is correct since it not clear whether the function is non negative: so here goes my solution:

let be an arbitrary positive number. Hence, there is a finite number N = N( ) of points x [0,1] such that f(x) . Each of these can at most belong to 2 sub intervals & therefore

U(f,P)

As the mesh can be chosen to be arbitrarily small we have:

As can be chosen to be arbitrarily small we get

But f is non negative(not sure if im correct here about the function being non negative)so: .........

Side note: If lower riemann integral and upper riemann integral have common values then we know >>>>>>>>> lower riemann integral = upper riemann integral...

and the side note imply that

lower riemann integral = upper riemann integral = 0.

This means that the function f is riemann integrable and = 0..

.. lol that took some while to type out.

burning question... was my proof correct? the bit im unsure about is whether the function is non negative or not. ive assumed it is, as noted on the proof