Combinatorics / Counting squares
Source:
August 11, 2019
combinatoricsgeometryrectangle
Problem Statement
A rectangle () is divided into unit () squares. Each square of this rectangle is colored red, blue or green. Let be the number of colourings of the rectangle in which there are an even number of red squares. What is the largest prime factor of ? (The number of red squares can be zero.)