Why is there no explicit formula for the factorial?

(The following is a joke.)

Put $a_n:={1\over 6}n(n+1)(n+2)$ and $b_n:={1\over2}n(n+1)$, and define the magic constant $$\xi:=\sum_{n=1}^\infty {n!\over 2^{a_n}}\ =\ 0.630882266676063396815526621896\ldots\quad .$$ Then $$n!=\bigl\lfloor\> 2^{a_n}\xi\>\bigr\rfloor\quad \bigl({\rm mod}\ \ 2^{b_n}\bigr)\qquad(n\geq1)\ .$$ Try it out!


Since nobody seems to be willing to answer, let me try to summarize the hints from the comments.

First, we can write factorial as $$n!=\int_0^{\infty}x^n e^{-x}dx.$$ One of the consequences of this formula is Stirling's approximation: as $n\rightarrow\infty$, $$n!\sim \left(\frac{n}{e}\right)^n\sqrt{2\pi n}.\tag{1}$$ At first sight, if there was an explicit algebraic formula for $n!$ in terms of $n$, in such expression there would be no place for $e$ or $\pi$; since they are both present in the asymptotics, one is tempted to conclude that no such algebraic formula can exist. Actually this is not quite true: as was pointed to me by Michalis, one can e.g. obtain $e$ as the asymptotics of $\left(1+\frac{1}{n}\right)^n$.

To show non-existence rigorously, you should first rigorously define what do you mean by "explicit formula" $n!=f(n)$, i.e. to define the class of "acceptable" functions $f$. For example, rational $f$ are immediately ruled out by the above asymptotics.