Let $c(n, k)$ denote the number of permutations in $S_n$ whose cycle decomposition has $k$ cycles. For a fixed $n$, I want to find $k$ such that $c(n, k)$ is maximized.
I know that the $k$ I seek is either the floor or ceiling of $1+\frac{1}{2}+\cdots+\frac{1}{n}$, but I'm not quite sure how to do this. This maybe suggests using an exponential generating function, but I don't know what the EGF of the sequence $c(n, k)$, for a fixed $n$ is. Could I have some hints?
I’m not sure how useful this is for you, but in this paper [PDF] Erdős showed that there is a $k_n$ maximizing $c(n,k)$ and that it is
$$k_n=\left\lfloor\ln(n+1)+\gamma-1+\frac{\zeta(2)-\zeta(3)}{\ln(n+1)+\gamma-\frac32}+\frac{h}{\left(\ln(n+1)+\gamma-\frac32\right)^2}\right\rfloor\;,$$
where $\gamma$ is the Euler-Mascheroni constant, $\zeta$ is the Riemann zeta function, and $-1.1<h<1.5$. He also noted that for $n>188$ this can be simplified to
$$\left\lfloor\ln n-\frac12\right\rfloor\le k_n\le\lfloor\ln n\rfloor\;.$$