Use our site without ad tracking and without advertising for €0.50/month.More on membershipplus
Daniel has been hired to paint a row of 7 houses. Each house must be painted Yellow, orange, or purple. However, to make it aesthetically pleasing, he doesn’t want any three consecutive houses to be the same color. Find the number of ways he can fulfill his task.