Suppose f : [a, b] ? R is continuous and that f([a, b]) is a subset of Q. Prove that f is constant on [a, b].