Say you want to sum $g(n) = \sum_{k=1}^{n} \frac{1}{k} = L$. Is there a simple formula to go from $L$ and deduce $n$?
My attempt:
For $n = 1$, the formula is $L$.
Assume there is a formula for all $n=1..N$ say $f(L)$. Then we have $g(N+1) = g(N) + \frac{1}{N+1}$, $\frac{g(N)(N+1) + 1}{N+1} = L$. $(N+1)(L - g(N)) = 1$. No hope.
You can approximate $n$ from $L$. An overestimate is $h_n \approx \ln(n)+c+\frac{1}{n}$. where $c \approx 0.577$.
From here $$h_n-c \approx \ln(n)+1/n$$
But $$\frac{\ln(n+h)-\ln(n)}{h} \approx 1/n$$ for $h$ close to zero. So $$\ln(n+1)-\ln(n) \approx 1/n$$.
Thus,
$$h_n-c \approx \ln(n)+\ln(n+1)-\ln(n)$$ This is still valid as an overestimate for $n>e^{1-c}-1$ the intersection of noncontinuous $h_n$ (when it's graphed using steps) and $\ln(n+1)+c$. But we only care for $n \geq 1$ so we should be good.
Let $h_n=L$
$$e^{L-c} \approx n+1$$
$$e^{L-c}-1 \approx n$$
An underestimate to the harmonic series is:
$$L=h_n \approx \ln(n)+c$$
$$e^{L-c} \approx n$$
Now
$$e^{L-c}-1 < n < e^{L-c}$$
If you want to see how these approximation formulas are derived click on my profile, it should be one of my top questions titled "an approach to approximating the harmonic series".