Former math grad student, now a lawyer for the last $28$ years. Just doing math for fun in my spare time.
I was browsing questions here and my mind went on a tangent. The following questions occurred to me, which I strongly suspect are related:
Let $S = \{x_n \mid n \in \Bbb N$ }$ \subseteq \Bbb R$ be a set with no accumulation points. (A subset of $\Bbb R$ with no accumulation points has to be countable, because you can partition $\Bbb R$ into countably many intervals as fine as you like, and if $S$ is not countable, the pigeonhole principle assures us that one of those intervals has uncountably many elements of $S$. Consider that interval and repeat the process countably many times with intervals having diameters that go to $0$, and you'll end up with an accumulation point of $S$.) Let $f:S \to \Bbb R$ be arbitrary. Is it always possible to extend $f$ to a $C^\infty$ function on $\Bbb R$? To an analytic function on $\Bbb R$?
If instead $S \subseteq \Bbb C$ (where $S$ has no accumulation points) and $f:S \to \Bbb C$ is arbitrary, is it always possible to extend $f$ to an analytic function on $\Bbb C$?
When I was in grad school, I focused on algebra and mathematical logic so I really have little idea how one would approach this question.