Quoto

Learn / Library / Combinatorics

Circular symbol fillings

CombinatoricsHard

A circular log has slots, where slot is next to slot . Each slot gets one of symbols so that adjacent slots always differ. Fillings that differ only by a rotation count as different. How many fillings are possible?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Compare circular fillings with straight rows whose ends may or may not match.

Solution
  1. Let be the number of valid circular fillings of slots; a straight row of slots with different neighbours can be filled in ways.
  2. In such a row the last symbol either differs from the first, which is a circular filling counted by , or equals the first; merging those equal ends gives a circular filling of slots, counted by .
  3. So with .
  4. The values for are , so .

Answer: