This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We have the following three possibility:
All squares have same color: This can be done be choosing one of the three colors, and painting all the squares with that color. Now, choosing one colour from 3 colours can be done in 3 ways.
No two square have same color: For this case, each square has to be given different color. Since the order does not matter, this can be done in 1 way.
Exactly two squares have same color: For this we have to first choose two colours and then colours the square. This can be done in 2 × 3 = 6 . ways.
Thus, total number of ways to colour the squares is 3 + 1 + 6 = 1 0