The following is a section in my homework, I couldnt solve it so I'm asking for some help.
I have the following set : $\{f:\mathbb N \to \mathbb N | f(f(a)) = a \text{ for all } a\in \mathbb N\}$.
I need to find if this set is a finite set, countably infinite set ($\aleph_0$) or infinite and uncountable.
Thanks in advance for your help
Hint. There is an injection from the set of binary strings that have infinitely many of both $1$s and $0$s, to the set of functions $f = f^{-1}$. Note that the latter is equivalent to the set of partitions of $\mathbb N$ into sets of disjoint pairs.