Let $H_i$ be the $i$ th harmonic number. For a given positive integer $m$ we want to find the smallest possible positive integer value $n$ such that $H_n = m + \alpha $, where $\alpha > 0$.
Let us define the solution as $f(m) = n$
Let $\operatorname{floor}$ be defined as rounding downwards. Examples $\operatorname{floor}(3,14) = 3 , \operatorname{floor}(9,99999) = 9 $)
Let $\gamma$ be the Euler-Mascheroni constant.
Now it appears that $f(m) $ has a simple closed form :
$$ f(m) = \operatorname{floor}\left( \exp(n - \gamma) - \frac{1}{2} \right) $$
How to prove this ? I assume it is necessary to assume $\gamma$ is irrational ?
I toyed around with irrationality measure and asymptotics to the digamma function. But nothing worked.
Maybe use Fourier series ?