Below each pair of neighboring blocks place a new block with the color rule: If the blocks are the same color use that color but if they are different use the third color.
Example:
r b y y b y r y r b b b b b bHow can the color of the last block be easily predicted from the top row?
Note: I don't know the full answer but can solve special cases.