I have $8$ pieces and $8$ places to put them into. I want to know how to calculate the number of possible combinations. The places are like this : $[a,b],[c(d,e),f(g,h)]$
$[a,b]$ is the same as $[b,a]$ and $(d,e)$ is the same as $(e,d)$
$[c(d,e),f(g,h)]$ is the same as $[f(g,h),c(d,e)]$ but not $[f(d,e),c(g,h)]$
I apologize if it's unclear. I never read a math problem in English before so I can't express the way I want to.
I don't need the result, I just want to know how to approach this problem.
EDIT 1 : I understand. My question now is that if I had 16 positions and 16 pieces as follows $[a,b,c,d],[e(f,g),h(i,j),k(l,m),n(o,p)]$. Following the same rules, $N$ becomes $4^2*2^4 = 256$ and the result would be $16! / 256$, correct?
EDIT 2 : I made a mistake. If I have $[a,b,c,d]$ and swapping $a$, $b$, $c$ and $d$ will produce an equivalent expression, then $N$ won't be $4$ but rather $4!$. With the first edit's expression of 16 pieces we will have $N = 4! * 4! * 2^4$ and the result would be $16! / 9216 = 2270268000$