TITLE: Are there "natural" sequences with "exotic" growth rates? What metatheorems are there guaranteeing "elementary" growth rates?
QUESTION [38 upvotes]: A thing that consistently surprises me is that many "natural" sequences $f(n)$, even apparently very complicated ones, have growth rates which can be described by elementary functions $g(n)$ (say, to be precise, functions expressible using a bounded number of arithmetic operations, $\exp$, and $\log$), in the sense that $\lim_{n \to \infty} \frac{f(n)}{g(n)} = 1$. I'll write $f \sim g$ for this equivalence relation. Here are some examples roughly in increasing order of how surprising I think it is that the growth rate is elementary (very subjective, of course).

The Fibonacci sequence $F_n$ satisfies $F_n \sim \frac{\phi^n}{\sqrt{5}}$.
The factorial $n!$ satisfies $n! \sim \sqrt{2\pi n} \left( \frac{n}{e} \right)^n$.
The prime counting function $\pi(n)$ satisfies $\pi(n) \sim \frac{n}{\log n}$.
The partition function $p(n)$ satisfies $p(n) \sim \frac{1}{4n \sqrt{3}} \exp \left( \pi \sqrt{ \frac{2n}{3} } \right)$.
The Landau function $g(n)$ satisfies $\log g(n) \sim \sqrt{n \log n}$. I don't know whether or not it's expected that $g(n) \sim \exp(\sqrt{n \log n})$.
For $p$ a prime, the number $G(p^n)$ of groups of order $p^n$ satisfies $\log_p G(p^n) \sim \frac{2}{27} n^3$.

I know some metatheorems guaranteeing elementary asymptotics for some classes of sequences. The simplest one involves sequences with meromorphic generating functions; this gives the Fibonacci example above as well as more complicated examples like the ordered Bell numbers. I have the impression that there are analogous theorems for Dirichlet series involving tauberian theorems that produce the PNT example and other similar number-theoretic examples. There's a metatheorem involving saddle point bounds which gives the factorial example and at least heuristically gives the partition function example. And I don't know any metatheorems relevant to the Landau function or $p$-group examples. So, questions:

Q1: What are some "natural" sequences $f(n)$ which (possibly conjecturally) don't have elementary asymptotics, in the sense that there are no elementary functions $g(n)$ such that $f(n) \sim g(n)$?

Right off the bat I want to rule out two classes of counterexamples that don't get at what I'm interested in: $f(n)$ may oscillate too wildly to have an elementary growth rate (for example $f(n)$ could be the number of abelian groups of order $n$), or it may grow too fast to have an elementary growth rate (for example $f(n)$ could be the busy beaver function). Unfortunately I'm not sure how to rigorously pose a condition that rules these and other similar-flavored counterexamples out. At the very least I want $f(n)$ to be a monotonically increasing unbounded sequence of positive integers, and I also want it to be bounded from above by an elementary function.
The kinds of sequences I'm interested in as potential counterexamples are sequences like the Landau function above, as well as combinatorial sequences like the Bell numbers $B_n$. The Bell numbers themselves might be a potential counterexample. Wikipedia gives some elementary bounds but expresses the growth rate in terms of the Lambert W function; it seems that the Lambert W function has elementary growth but I'm not sure if that implies that $B_n$ itself does.

Q2: What are some more metatheorems guaranteeing elementary growth rates? Are there good organizing principles here?


Q3: What are some "natural" sequences known to have elementary growth rates but by specific arguments that don't fall under cases covered by any metatheorems?

Apologies for the somewhat open-ended questions, I'd ask a tighter question if I knew how to state it.
Edit: Wow, apparently I asked almost exactly this question almost exactly $10$ years ago, and I even gave three of the same examples...

REPLY [2 votes]: nombre mentioned the work by van den Dries, Macintyre and Marker on transseries, but it seems no one has mentioned the paper Logarithmic-exponential power series by the same authors, in which they proved:

The compositional inverse to $x\mapsto(\log x)(\log\log x)$ is not asymptotic to a composition of semialgebraic functions, log and exp.

confirming a conjecture of Hardy. Denote the inverse by $f(x)$. They mentioned in the paper that $e^{f(x)}$ had been shown to have non-elementary growth rate by Shackell. Also $f(x)=e^{e^{W(x)}}$ if my algebra is right.
This is a real function instead of an integer sequence, but $\lfloor f(n)\rfloor$ should work since $\lim_{n\rightarrow\infty}\frac{f(n+1)}{f(n)}=1$, so if $\lfloor f(n)\rfloor$ were asymptotic to $g(n)$ for some elementary function $g$, then $f(x)$ would be asymptotic to $g(x)$ (using the fact that $g(x)$ must be eventually increasing, mentioned in an answer to your old question).
I realized that I completely ignored trignometric functions; fortunately you also excluded them in your question. It seems even just adding $\cos x$ makes the situation a lot more complicated. In A Simple Example for a Theorem of Vijayaraghavan, the authors showed that for any $\phi:[0,\infty)\rightarrow\mathbb{R}$, there exists a suitable irrational number $\alpha$ such that $\frac{1}{2-\cos x-\cos\alpha x}$ is greater than $\phi$ on a sequence that tends to infinity.