MathDB
Bananagrams

Source: EGMO 2023/3

April 16, 2023
EGMO 2023EGMO

Problem Statement

Let kk be a positive integer. Lexi has a dictionary D\mathbb{D} consisting of some kk-letter strings containing only the letters AA and BB. Lexi would like to write either the letter AA or the letter BB in each cell of a k×kk \times k grid so that each column contains a string from D\mathbb{D} when read from top-to-bottom and each row contains a string from D\mathbb{D} when read from left-to-right. What is the smallest integer mm such that if D\mathbb{D} contains at least mm different strings, then Lexi can fill her grid in this manner, no matter what strings are in D\mathbb{D}?