I seek to show whether the following statements are true or false:
If $f$ is continuous on $(a,b)$ and $\{x_n\}$ is a sequence in $(a,b)$, then the sequence $\{f(x_n)\}$ has a convergent subsequence.
If $f$ is continuous on $[a,b]$ and $\{x_n\}$ is a sequence in $(a,b)$, then the sequence $\{f(x_n)\}$ has a convergent subsequence.
My gut tells me one of them is true and the other false, but I'm not sure which. I think 2 is false and 1 is true? I can't really seem to explain why...
Thanks in advance.