According to intermediate value theorem if f is continuous on interval I , a,b belongs to I and f(a) doesn't equal to f(b),then f takes any value between f(a) and f(b) in a point between a and b. My question is : is it possible that f takes each value in an infinite number of

points ?