Mathematics — Real Analysis · continuous-functions-converging-to-popcorn
Problem
(Challenging): Find a sequence of continuous functions fn:[0,1]→R that converge to the popcorn function f:[0,1]→R, that is the function such that f(p/q):=1/q (if p/q is in lowest terms) and f(x):=0 if x is not rational (note that f(0)=f(1)=1), see Example 3.2.12. So a pointwise limit of continuous functions can have a dense set of discontinuities.