Problem

Source: 2016 JBMO TST Romania

Tags: combinatorics



Given three colors and a rectangle m × n dice unit, we want to color each segment constituting one side of a square drive with one of three colors so that each square unit have two sides of one color and two sides another color. How many colorings we have?