Let $f: [0,1] \rightarrow \mathbb{R}$ be continuous with $f(1)=f(0)$. If $h\in (0, 1/2)$ is not of the form $1/n$, there does not necessarily exist $|x − y| = h$ satisfying $f(x) = f(y)$. Provide an example that illustrates this using h = 2/5.
I'm really mind blown with this question. I could share with you what I've done but its just some squiggles of a graph and it feels like there is absolutely no way I can prevent a gap of $2/5$ sneaking in. I'm taking $|x-y|=2/5$ to be, "Can I fit a ruler under my curve of length 2/5 so that it touches both sides" and I just cannot see a situation where that doesn't happen. I'm guessing that my intuition has been flawed by my drawing attempt and in fact the solution is a very non-differentiable curve.
The same question has been "answered" here Using Intermediate Value Theorem for continuous functions but unfortunately this poor fellow has been entirely mislead by a false example.