Problem: Seven houses in a row are to be painted with one of the colors red, blue, green or yellow. In how many different ways can the houses be painted so that no two adjacent houses are the same color? My answer is 2916 but I am really unsure of it. I don't understand the formula that should be used to find this answer. Thanks.