How to find *n* in the equation:

Here cdf_binomial() is a distribution function of binomial random variable:

By trial and error I found that n=164. But is it possible to express

*n* for a direct calculation? How did people solve such problems before the age of computers?