Suppose that I have sampled counts $x_{1}\sim Bin(N,p), \ x_{2}\sim Bin(N-x_{1},p), \ x_{3} \sim Bin(N-x_{1}-x_{2},p)$. My goal is to find the maximum likelihood estimate for $N$.
If I write down the likelihood and discard all the terms that are not $N$, I end up with
$$L(N|x_{1},x_{2},x_{3})\propto \frac{N!}{(N-x_{1}-x_{2}-x_{3})!}(1-p)^{3N}$$
know we know that in order to derive the maximum for $N$ we have to take the logarithms and calculate the derivative with respect to $N$.
So, this would be
$$\frac{dl(N|x_{1},x_{2},x_{3})}{dN}\approx log(N) - \frac{dlog(N-x_{1}-x_{2}-x_{3})!}{dN} +log(1-p)^{3}=0$$
However, I do not know how to calculate the $\frac{dlog(N-x_{1}-x_{2}-x_{3})!}{dN}$ in a convenient closed form solution, what is it going to be?? I know that $\frac{dN!}{dN}\approx \log(N)$ but for the $(N-x_{1}-x_{2}-x_{3})!$ I am completely clueless. Is there an approximation in a closed form or an analytical solution?
Now, if I use the stirlings approximation for the $log(N-x_{1}-x_{2}-x_{3})!$, then my equation will be
$$\frac{dl(N|x_{1},x_{2},x_{3})}{dN}\approx log(N) + \frac{1}{2(N-x_{1}-x_{2}-x_{3})}-log(N-x_{1}-x_{2}-x_{3}) +log(1-p)^{3}=0$$
which I don't know how to solve for $N$.