Suppose there are four blocks arranged in a consecutive order. They need to be colored with the four colors blue, green, orange and red in such a way that the two same colors cannot be next to each other. What are the number of ways this can be done?
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.
There are four blocks. As only the same colors can't be adjacent to each other, they can be done in 4X3X3X3=108 ways