Let $\alpha \in (0,1)$ and $\beta \in (0,1)$. I want to compute the smallest integer $n > 0$ such that: $$ 1 - \alpha^n - [1 - \alpha]^n \geq \beta. $$ For example, with $\alpha = 0.75$ and $\beta = 0.99$, we find $n = 17$.
I know that a dichotomy search for n in a wide range, say $[0,10^7]$ is doable. Another method is to let $n$ be temporarily real, find the solution of the equation $1 - \alpha^x - [1 - \alpha]^x = \beta$ for $x > 0$ a real number, then round to the upper integer. But i feel that this equation might be more deep than these algorithms and I search for a better solution. Is there one?
I think there should be no 'better' solution.
The function $f(n) = (1-\alpha^n - (1-\alpha)^n)$ is monotonuously increasing in $n$ as both exponential terms are in $(0,1)$, so if you find a solution to $f(n) = \beta$ for $n\in\mathbb{R}^+$, then you can indeed round up $n$ and this should give you the optimal solution for $n\in\mathbb{Z}^+$, given that $\alpha$ and $\beta$ are constants.
Methodology wise, both a dichotomy search and some sort of exact method should be sufficient to solve this question. I am not sure if the equation you posted has a closed-form solution, but I would expect it to be ugly if it exists.