Let $a_n$ be the number of those permutation $\sigma $ on $\{1,2,...,n\}$ such that $\sigma $ is a product of exactly two disjoint cycles. Then find $a_4$ and $a_5$.
Calculating $a_4$: Possible cases which can happen are $(12)(34),(13)(24),(14)(23)$, any cycle of the form $(123)$ or $(12)$ i.e. two-cycles and three cycles thus we have in total $3+\frac{1}{3}4P_3+\frac{1}{2}4P_2=3+8+6=17$ but the correct answer is given to be either $11$ or $14$.
Where am I wrong? Please help.
From the possible answers, it appears that the question intended to ask how many permutations have exactly two cycles in their cycle decomposition, including the $1$-cycles.
If the smaller cycle has $k$ elements, the greater has $n-k$, and $j$ particular elements can form $(j-1)!$ different $j$-cycles. Thus the desired count is
$$ \frac12\sum_{k=1}^{n-1}\binom nk(k-1)!(n-k-1)!=\frac{n!}2\sum_{k=1}^{n-1}\frac1{k(n-k)}\;, $$
where the factor $\frac12$ compensates for the double-counting of all products, including in the case of even $n$ the products of two cycles of length $\frac n2$. So we have
$$ a_4=4!\left(\frac1{1(4-1)}+\frac12\frac1{2(4-2)}\right)=24\left(\frac13+\frac18\right)=11 $$
and
$$ a_5=5!\left(\frac1{1(5-1)}+\frac1{2(5-2)}\right)=120\left(\frac14+\frac16\right)=50\;. $$