Russell's paradox (1901) in set theory can be stated as:
If $$P$$ is the set of all sets, one can form the set $$Q = {A \in P | A \notin A}$$ which can lead to the contradiction $$Q \in Q$$ iff $$Q \notin Q$$.
This can be done by dividing P into two non-empty subsets,
$$P_1 = {A \in p | A \notin A}$$ and $$P_2={A \in P | A \in A}$$. We then have the contradiction $$P_1 \in P_1$$ iff $$P_1 \notin P_1$$.
The paradox happens when we allow as sets A for which $$A \in A$$. It can be remedied by agreeing that no collection can be a set which would be an element of itself.
Relation to Groucho Marx's quote (earliest 1949) about resigning membership of a club which would have him as a member: https://hypothes.is/a/3_zAfITjEe-H5-PlfOlK8A