We define the symmetric group $S_n$ to be the set of all permutations of the first $n$ natural numbers. Moreover, we define the set $T_n$ as the set of all possible orders of elements in $S_n$ i.e.
$$T_n=\{ \space|\sigma| \mid \sigma \in S_n \}$$
We are interested in studying the set $T_n$.
First, we can start by observing when $x \in T_n$, given positive integers $x$ and $n$. Clearly, $x=1$ is an element of $T_n$ for any $n \in \mathbb{N}$ since the identity permutation has order $1$. For $x>1$, let the prime factorization of $x$ be: $$x=\prod_{i=1}^k p_i^{a_i}$$ Assume that a permutation $\sigma \in S_n$ has order $x$. Let the unique cycle decomposition (with cycles of length $1$ ignored) of $\sigma$ be: $$\sigma=\prod_{j=1}^t C_j$$ We have $x=|\sigma|=\text{lcm}(|C_1|,|C_2|,\ldots,|C_t|)$. Using this equation, we can show that for every $1 \leqslant i \leqslant k$, there exists some $1 \leqslant j \leqslant t$ such that $p_i^{a_i} \mid |C_j|$. This implies that $p_i^{a_i} \leqslant |C_j|$. Moreover, if we have multiple prime powers, say $p_1^{a_1}, p_2^{a_2}, \ldots ,p_i^{a_i}$ (WLOG a list of $i$ prime powers) all dividing $|C_j|$, we can see that: $$p_1^{a_1}p_2^{a_2}\cdots p_i^{a_i} \mid |C_j| \implies p_1^{a_1}+p_2^{a_2}+\cdots+p_i^{a_i} < p_1^{a_1}p_2^{a_2}\cdots p_i^{a_i} \leqslant |C_j|$$
This tells us that: $$\sum_{i=1}^k p_i^{a_i} \leqslant \sum_{j=1}^t |C_j| \leqslant n \implies \sum_{i=1}^k p_i^{a_i} \leqslant n$$
However, one can see that this is a sufficient condition for the existence of a permutation $\sigma$ as we can set $k=t$ and $|C_i|=p_i^{a_i}$ for all $1 \leqslant i \leqslant k$. Thus: $$x \in T_n \iff \sum_{i=1}^k p_i^{a_i} \leqslant n$$
We can see that the sum of the prime powers in the factorization of numbers is relevant in studying $T_n$. Thus, we define: $$f \bigg( \prod_{i=1}^k p_i^{a_i} \bigg) = \sum_{i=1}^k p_i^{a_i}$$
One result we can deduce using this function is showing that the only exception to $|T_n|>|T_{n-1}|$ for $n>2$ is $n=6$. Clearly, we can see from above that: $$|T_n|>|T_{n-1}| \iff \exists \space x \in \mathbb{N} \text{ such that } f(x)=n$$
We can check that $n=1,6$ are the only exceptions till $n<11$. For $n \geqslant 11$, we prove by induction hypothesis. We assume that $1$ and $6$ are the only exceptions until $n-1$. As $11$ is the second Ramanujam prime, we have: $$\pi(n)-\pi \bigg(\frac{n}{2} \bigg) \geqslant 2$$
So, let two primes in the interval $\bigg(\frac{n}{2},n \bigg]$ be $p$ and $q$. Clearly, $n-p$ and $n-q$ are not simultaneously $1$ and $6$ due to parity. WLOG, let $n-p \neq 1,6$. We have: $$f(x)=n-p \implies f(px)=n$$ Note that $p \nmid x$ as $p>n-p$. Thus, we have concluded that $|T_n|>|T_{n-1}|$ for $n>2, n\neq6$.
We can see that the observation of $f(x)$ gives us better insight on the set $T_n$. I have the following questions:
$1.$ What is the average order of $f(x)$? Can we write an asymptotic expression for the same?
$2.$ Is there an asymptotic expression for $|T_n|$? Can we say anything about the same using the function $f(x)$?