I want to decompose given list $P=\{1,2,3,...,n\}$ into three subsets $Q,R,S$ considering without ordering of a given set.
Let me explain my situation by counting the rank $3$ case.
Let $P=\{1,2,3\}$ I want to divide $P=QRS$ with $Q,R,S$ non-empty sets without considering ordering. Simply in this case there are $3!=6$ ways with $(Q,R,S) = \{(1,2,3), (1,3,2), \cdots \}$.
Let $P=\{1,2,3,4\}$. Then at least one element of its subset contains two elements. Let me choose my $Q$ with choosing two elements $1,2$. Then since I am not considering the order I just denote my $Q$ as $Q=12$. Considering the whole set $P=(Q,R,S)$. There are only two cases {(12,3,4), (12,4,3)}. So consider the whole partition decomposition, I have $3 \times \binom{4}{2} \times 2 = 36$
For rank $5$ case there are $2+2+1, 3+1+1$ case and for each case the number of partitions are $\binom{5}{2} \binom{3}{2} \times 3 + \binom{5}{3} \times 2 \times 3 = 90+60=150$.
I am somehow exhausted to compute all the higher rank cases, And there seems a closed general formula for the general case. Is there any closed formula for the general $n$ case?