MathDB
Number of colorings using three colors

Source: Austrian Federal Competition for Advanced Students 2012, #3

May 23, 2012
inductioncombinatorics proposedcombinatorics

Problem Statement

Consider a stripe of nn fieds, numbered from left to right with the integers 11 to nn in ascending order. Each of the fields is colored with one of the colors 11, 22 or 33. Even-numbered fields can be colored with any color. Odd-numbered fields are only allowed to be colored with the odd colors 11 and 33. How many such colorings are there such that any two neighboring fields have different colors?