Any ideas/hints on how to construct a non-decreasing function on $[0,1]$ whose set of discontinuities is not closed?
The motivation is that I noticed that most "regular" functions have closed (discrete) sets of discontinuities, so I was wondering whether it is possible to construct a function whose set of discontinuities is not closed.
I did have an idea to construct a function whose set of discontinuities is a sequence whose limit point is a point of continuity, but I failed to implement this idea.
HINT: Can you find a function that is continuous at $0$ but discontinuous at $1/n$ for $n\in\Bbb N$?