Consider a tree where each node has 2 subnodes, with a total of 7 nodes. So the maximum level of the tree is 2. Each node can be coloured white or black. Two colourings are equivalent if the one is about to enter in another by changing the left and right subtrees.
What is the corresponding permutation group? And what is the total number of different colourings?
Now I want to solve this with the theory of Polya. But I don't even know which permutation group belongs to this problem. Any help is appreciated.
Your tree looks like
and the relevant permutation group for the Pólya counting theorem is the group of permutations where we say "two colorings are equivalent if they are related by one of these permutations".
So in this case the relevant permutions are those that interchange the left and right subtress of one of the inner nodes, that is, $$\begin{align} x &= (23)(46)(57) & \text{(swap children of 1)} \\ y &= (45) &\text{(swap children of 2)} \\ z &= (67) &\text{(swap children of 3)} \end{align}$$ and all permutations that can be written as products of these.
So the first step is to figure out which croup these $x$, $y$, and $z$ generate. You could do that simply by computing all of the possible products of group elements until you don't find any more, but it is quicker to go about it algebraically and observe that the relations $$ x^2=y^2=z^2=e \qquad yx = xz \qquad zx = xy \qquad zy=yz $$ (which are easy to check) imply that every element in the group can be written as $$ x^iy^jz^k \qquad i,j,k\in\{0,1\} $$
So there are 8 elements that you can enumerate in a systematic way and then apply Pólya's theorem.