MathDB
Guayaco board combi nt problem

Source: OMEC Ecuador National Olympiad Final Round 2020 N3 P6 day 2

November 11, 2024
combinatorics

Problem Statement

A board 11xkk is called guayaco if: -Each unit square is painted with exactly one of kk available colors. -If gcd(i,k)>1gcd(i,k)>1, the iith unit square is painted with the same color as (i1)(i-1)th unit square. -If gcd(i,k)=1gcd(i, k)=1, the iith unit square is painted with the same color as (ki)(k-i)th unit square. Sebastian chooses a positive integer aa and calculates the number of boards 11xaa that are guayacos. After that, David chooses a positive integer bb and calculates the number of boards 11xbb that are guayacos. David wins if the number of boards 11xaa that are guayacos is the same as the number of boards 11xbb that are guayacos, otherwise, Sebastian wins. Find all the pairs (a,b)(a,b) such that, with those numbers, David wins.