1

Given two real numbers $0<a<1$ and $0<\delta<1$, I want to find a positive integer $i$ (it is better to a smaller $i$) such that $$\frac{a^i}{i!} \le \delta.$$

Eric Wofsey
  • 330,363
John Smith
  • 1,017
  • 7
  • 16
  • Are you sure you want the minimum $i$ which will be hard to compute exactly? Or would you be happy with an $N$ such that any $i$ greater than $N$ would work (which is what you would need if you were looking at problem with limits). – Mark Bennet May 14 '12 at 11:15
  • If the minimum $i$ is too hard to find, then it is better to find an integer $i$ as small as possible – John Smith May 14 '12 at 11:18
  • @draks, how to use Lambert-W-function? I am now obtaining the following inequality: $${(a\cdot e)}^i<\sqrt{2\pi}\delta i^{i+1/2}$$ – John Smith May 14 '12 at 13:41

2 Answers2

2

Here is what I put together from my math toy box:

  1. Use Stirling's approximation $i!\approx(i/e)^i$ to get $\left( \frac{ae}{i}\right)^i \le \delta$.
  2. Call $ae=1/b$ and invert to get $(ib)^i\ge \delta^{-1}$.
  3. Continue with $(ib)^{ib}\ge \delta^{-b}$, define $x:=bi$ to get $x^x\ge\delta^{-b}$
  4. and then use $$ x\ge\frac{\ln(\delta^{-b})}{W(\ln \delta^{-b})}=\frac{\ln(\delta^{-1/ae})}{W(\ln \delta^{-1/ae})}. $$
  5. Resubstitute $x=\frac{i}{ae}$ for the result $i\ge\frac{ae\ln(\delta^{-1/ae})}{W(\ln \delta^{-1/ae})}$.
draks ...
  • 18,449
0

Here is a not-very-good answer. Let $i$ be the result of rounding $\log\delta/\log a$ up to the nearest integer. Then $i\ge\log\delta/\log a$, so $i\log a\le\log\delta$ (remember, $\log a\lt0$), so $a^i\le\delta$, so $a^i/i!\le\delta$.

Gerry Myerson
  • 179,216