Measure, Integration & Real Analysis · Problem 1B.1
Measures — Sheldon Axler
Mathematics — Measure Theory · riemann-integrable-thomae-function
Problem
Define f:[0,1]→R as follows:
f(a)={0n1if a is irrational,if a is rational and n is the smallest positive integer such that a=nm for some integer m.
Show that f is Riemann integrable and compute ∫01f.