I'm currently in my first year of studying mathematics. In one of the subjects we learnt about the cardinality of different sets, among which $\Bbb{N}$ and $\Bbb{R}$. We also discussed the Power Set $P(A)$ as the set of all subsets of $A$ and proved that $P(A) > A$ for all $A$.
Today I asked myself: What is the cardinality of the set $X$ of continuous functions $f: D \rightarrow \Bbb{R} $ where $D \subseteq \Bbb{R}$. So: $$X=\{f: D \rightarrow \Bbb{R} \space \space where f \space is \space continuous\}$$
After some time I got the idea to construct a subset $Y$ of $X$ in the following way:
$$Y = \{f(x) \space where \space f(x) = \sum_{\alpha\in I}x^\alpha \space \space with \space I \subseteq \Bbb{R} \}$$
Is it allowed to do this, or can I only sum over a subset with countably many elements? And are these functions continuous? Because if this is true, then I have shown that $X \le P(\Bbb{R})$, because there is an element in $Y$ for each subset of $\Bbb{R}$.