Calculate the cardinality of the following sets:
$A=\{f:\mathbb N \to \mathcal{P}(\mathbb N) : n \in f(n) \space \forall \space n \}$
$B=\{f:\mathbb N \to \mathcal{P}(\mathbb N) : n \notin f(n) \space \forall \space n \}$
My attempt at a solution (corrected after Greg's comments).
I define $S=\{f:\mathbb N \to \mathcal{P}(\mathbb N)\: f(n)=\{n,2n\} \space \vee \space f(n)=\{n,3n\}\}$. Then, for each $n$, $f(n)$ can take two values. Clearly, $S \subset A$ and $|S|=2^{\aleph_0}=c$, so $c=|S|\leq |A|.
Now, I define $S'=\{f:\mathbb N \to \mathcal{P}(\mathbb N)\: f(n)=\{2n,3n\} \space \vee \space f(n)=\{3n,4n\}\}$. Note that $S' \subset B$ and, as in the other case, $f(n)$ can take two values for each $n \in \mathbb N$, then $c=2^{\aleph_0} =|S'|\leq |B|\leq c \implies |B|=c$.
A candidate for cardinal of both sets $A$ and $B$ is the cardinal $c$. I've proved that $c\leq |A|$ and $c\leq |B|$. Now, I would like to show that $|A|,|B|\leq c$. There are two ways I thought of proving these:
1) Find sets $P$, $P'$ such that $A \subset P$ ,$B \subset P'$ and $|P|=c=|P'|$.
2) Try to define an injective function from $A$ ($B$ respectively) or $A \cup B$ to a set with cardinality $c$.