PROJECT EULER · #0671
Colouring a Loop
A certain type of flexible tile comes in three different sizes -
These are used to tile a closed loop of width
- The loop must be fully covered by non-overlapping tiles.
- It is not permitted for four tiles to have their corners meeting at a single point.
- Adjacent tiles must be of different colours.
For example, the following is an acceptable tiling of a
but the following is not an acceptable tiling, because it violates the "no four corners meeting at a point" rule:
Let
For example,
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.