How many ways can we paint a 10-level house if each floor can be only red, white and green, and there can't be three white floors on top of each other?In this picture you can see a good and a bad possibility to paint a 4-level house: