A natural number $n\ge 3$ is given. Denote $a\uparrow\uparrow b$ to be a power tower of $b$ $a's$.
Let $m$ be the smallest natural number , such that $m\uparrow\uparrow(n+1) > n\uparrow\uparrow n$
How can I efficiently determine $m$, in particular if $n$ is very large.
Is there a formula $m(n)$ giving $m$ directly ?
Since $n\uparrow \uparrow (n+1)>n\uparrow\uparrow n$, we have $m\le n$.
It seems that $m\le n-1$ holds for $n\ge 4$.

Not a complete answer, but too cumbersome for a comment.
For nearly every value of $n$, the answer will be the largest value of $m$ such that $\frac{m^m}{m-1}$ is less than $n$. With a little work one can show that if $n \le m^{m-1}$ then $n\uparrow\uparrow n < m \uparrow\uparrow (n+1)$, whereas it is easy to see that if $n \ge \frac{m^m}{m-1}$ then $n\uparrow\uparrow n > m\uparrow\uparrow (n+1)$. Thus if $n$ is not between $m^{m-1}$ and $\frac{m^m}{m-1}$ for some value of $m$, then the above answer will be exact, whereas if $n$ lies between $x^{x-1}$ and $\frac{x^x}{x-1}$ then $m(n) = x$ for lower values and $m(n)=x+1$ for high values.
Determining the exact transition point seems tricky, and I think it is very likely there is no nice answer.
EDIT: Adding proofs.
If $n \le m^{m-1}$, then $n^n \le (m^{m-1})^{(m^{m-1})} = m^{m^{m} - m^{m-1}}$. Subsequent exponentiations are not enough to overcome the deficit; I will illustrate for $n\uparrow\uparrow 5$, and the pattern should be clear for all other power tower lengths.
$$n \uparrow\uparrow 5 = n^{n^{n^{n^n}}} < (m^m)^{(m^m)^{(m^m)^{m^{m^m - m^{m-1}}}}} = m^{m^{m^{m^{m^m - m^{m-1} + 1} + 1} + 1}} < m^{m^{m^{m^{m^m - m^{m-1} + 1} + 2}}} < m^{m^{m^{m^{m^m - m^{m-1} + 2}}}}< m^{m^{m^{m^{m^m}}}}.$$
If $n \ge \frac{m^m}{m-1}$, we have $n^n \ge (\frac{m^m}{m-1})^{\frac{m^m}{m-1}} > (m^{m-1})^{\frac{m^m}{m-1}} = m^{m^m}$. Subsequent exponentiations will only increase the advantage of the power tower of $n$'s, since it exponentiates to a higher base.