I was doing this question:
$A$ has cans of paint in eight different colors. He wants to paint the four unit squares of a $2 \times 2$ board in such a way that neighboring unit squares are painted in different colors.
The number of distinct coloring schemes ‘A’ can make is equal to?
The number of distinct colouring schemes ‘A’ can make in which two colouring schemes are considered the same if one can be obtained from the other by rotation is equal to?
My attempt: For the first part, I tried to use inclusion exclusion:
$ 8^4 - (4)\binom{8}{1}(1)(8^2) + (4)\binom{8}{1}(1)(8^1) - (1)\binom{8}{1}(1)(8^0) $
This gave me an answer equal to 2272, but the answer given is 2072.
Any thoughts on where I am wrong?
EDIT: I forgot to explain my working.8^4 is to total no. of ways, and then I subtracted the case of selecting 2 consecutive blocks in 4 ways (the left two, the right two, the upper two and the bottom two), pick one color out of eight, fill that color in the two blocks in one way, and then color the remaining two blocks in 8*8=8^2 ways, and then added the case of selecting three consecutive blocks, coloring them one way, and coloring the remaining block with 8 ways, and then lastly subtracting the case of selecting all 4 blocks, and coloring them using a single color. The answer given in the book was simply as follows:
$\binom{8}{4} 4! + \binom{8}{3} 3! \times 1 + \binom{8}{2} \times 2! = 2072$