In Taylor's series, to determine the number of terms needed to obtain the desired accuracy, sometimes one needs to solve inequalities of the form $$\frac{a^n}{n!}<b,$$ where $a$ and $b$ are fixed positive numbers. In most textbooks in calculus, the only introduced method to solve $\frac{a^n}{n!}<b$ for $n$ is trial and error. While this method works well in many cases, I feel that it is inefficient when $a$ is large and $b$ is small. (For example, how about solving $\frac{1000^n}{n!}<0.01$?)
My Question: Apart from using brutal force, is there another method to solve the inequality $\frac{a^n}{n!}<b$ for $n$?
I am quite certain that this inequality doesn't have an analytical solution. But usually in these problems, we deal with fairly large values of $n$ to the extent that Stirling's approximation is reasonably accurate. So if you replace $n!$ with its approximation: $$\frac{a^n}{n!}\approx\frac{(ae)^n}{n^n\sqrt{2\pi n}}<b$$ and then take logarithm of both sides $$n(\ln a+1)-(n+\frac12)\ln n<b+\frac12\ln(2\pi)$$ the only nonlinear term in the above inequality is $\ln n$, but it looks much simpler to check this one rather than the original inequality. For example, if $a=1000$ and $b=0.01$ as you say, then $$7.9n-(n+0.5)\ln n<0.01+0.919=0.929$$ and you can easily (well, sort of) find an approximation of $n$ by applying Newton's method to solve this inequality: $$n\approx 2693$$