This question arose on sci.math, but since almost all the competent mathematicians there have migrated here, I thought I'd give the question a wider audience. Starting with an integer $t>2$, perform the following operations
- Compute $t!, (t!)!, ((t!)!)!, \ldots$ repeated $ n$ times (allowing $n=0$ to result in $t$)
- To that result, $r$, compute $\sqrt{r}, \sqrt{\sqrt{r}}, \dots$ repeated $ m$ times (with the same convention as above).
- Return the floor of the result of step 2.
Call this function $S(t, n, m)$, meaning "start with $t$, do $n$ repeated factorials, then do $m$ repeated square roots, and finally take the floor". The original question was, given a positive integer, $x$, is there always a pair $(n,m)$ such that $S(4, n, m) = x$? One followup is obvious: does the answer depend on choice of starting value $t$?
[I had a hard time figuring what tags I should use, so feel free to retag this to your heart's content.]