IMO 1982 LL FRA29

Let f : R oR be a continuous function. Suppose that the

IMO 1982 LL FRA29

Origin: FRA

Problem

Let f : R \toR be a continuous function. Suppose that the restriction of f to the set of irrational numbers is injective. What can we say about f? Answer the analogous question if f is restricted to rationals.