Consider a set $C$ composed by three different kinds of elements, and $|C|=c\in\mathbb{N}$.
Denoting with $\alpha,\beta,\gamma>0$ the integers accounting for the numbers of elements of the three kinds (such that $\alpha+\beta+\gamma=c>2$), and performing $n>0$ trials with replacement from the set $C$, it is easy to prove (e.g. by means of Bayes' theorem) that the probability of the event $I$ defined as "to get, in $n$ trials, at least one element of each kind" is
$$ P(I_n^C)=1-\left(\frac{\alpha+\gamma}{c}\right)^n-\left(\frac{\beta+\gamma}{c}\right)^n-\left(\frac{\alpha+\beta}{c}\right)^n+\left(\frac{\alpha}{c}\right)^n+\left(\frac{\beta}{c}\right)^n+\left(\frac{\gamma}{c}\right)^n. $$
A trivial property of this event is that, since $\alpha,\beta,\gamma>0$, then $P(I_n^C)=0\iff n\leq 2$.
Therefore, if we impose the relation $1-\left(\frac{\alpha+\gamma}{c}\right)^n-\left(\frac{\beta+\gamma}{c}\right)^n=0$, it must be
$$ -\left(\frac{\alpha+\beta}{c}\right)^n+\left(\frac{\alpha}{c}\right)^n+\left(\frac{\beta}{c}\right)^n+\left(\frac{\gamma}{c}\right)^n=0 \iff n\leq 2. $$
In other words, if $1-\left(\frac{\alpha+\gamma}{c}\right)^n-\left(\frac{\beta+\gamma}{c}\right)^n=0$, then either
$$-(\alpha+\beta)^1+\alpha^1+\beta^1+\gamma^1=0$$
and $n=1$ (which implies $\gamma=0$, and $\alpha+\beta=c$), or
$$ -(\alpha+\beta)^2+\alpha^2+\beta^2+\gamma^2=0 $$
and $n=2$ (which implies $\gamma^2=2\alpha\beta$, and $(\alpha+\gamma)^2+(\beta+\gamma)^2=c^2$).
From this reasoning I would conclude that the request $1-\left(\frac{\alpha+\gamma}{c}\right)^n-\left(\frac{\beta+\gamma}{c}\right)^n=0$ (which corresponds to Fermat's equation $a^n+b^n=c^n$, where $a=\alpha+\gamma$ and $b=\beta+\gamma$), in order to fulfill the property $P(I_n^C)=0\iff n\leq 2$, should be compatible only with $n\leq 2$ (or only with $n=2$, if we require $\gamma>0$).
What is wrong in this conclusion?
I apologize for the naivety of the whole reasoning. Thanks for your help!
EDIT: This post is related to this one Invariance of the probability of an event related to an urn... with a weird constraint, which affords the problem from another perspective.