This is a question I got in my homework, and it reads as follows (translated):
Consider the function $f:P(\mathbb N) \to P(\mathbb N)$, given by $f(A)=A \setminus \{1\}$.
Prove that $|f^{-1}(\{A\})| \in \{0,2\}$ for all $A \in P(\mathbb N)$
This is how I attempted to solve it, and the problems I faced:
If $f(A)=A \setminus \{1\}$, then the inverse function is $f^{-1}(A)=A\cup \{1\}$.
Now we are faced with 2 cases: either $\{1\}$ is in $A$, or not.
If $1$ is not in $A$, then $f^{-1}(\{A\})=\{A\} \cup \{1\}=\{A,1\}$ and then $|f^{-1}({A})|=2$.
I'm pretty sure A wouldn't look like $\{1, \dots \}$, but I'm not certain.
But what if $1$ is in $A$ originally?
I thought the inverse function wouldn't care and would still return $\{A\}\cup \{1\}$, resulting in $|f^{-1}({A})|=2$. But my friend wasn't so sure and now neither am I.
I don't know if I make a mistake somewhere, or if the teacher was trolling and added a $0$ for no reason, so I'm asking here for help.