Given $n$ independent geometric random variables $X_n$, each with probability parameter $p$, define $$Z_n= \max_{i \in 1 .. n}X_n$$
I am interested in what the mle of $n$ is given $Z_n$, with known and fixed $p$.
We can give a good approximation for the mean of $Z_n$.
$$Z_n \approx \frac{1}{2} + \frac{1}{\lambda} H_n,$$ where $H_n$ is the $n$th harmonic number $H_n = \sum_{k=1}^n \frac{1}{k}$, and $\lambda = -\log (1-p)$. (See https://math.stackexchange.com/a/26214/72724)
I am not sure where to go from here.