Problem 3.
Let be a positive integer. Lexi has a dictionary consisting of some -letter strings containing only the letters and . Lexi would like to write either the letter or the letter in each cell of a grid so that each column contains a string from when read from top-to-bottom and each row contains a string from when read from left-to-right. What is the smallest integer such that if contains at least different strings, then Lexi can fill her grid in this manner, no matter what strings are in ? Solution
Replace with and with . The answer is . To show that does not work, take containing all strings other than starting with . Then, the top row of the grid must contain a , but no string in starts with , a contradiction. Let two strings be complementary if the corresponding digits in each position are opposite. Notice that cannot contain either or , otherwise we can fill the grid with either zeroes or ones. Since there are remaining complementary pairs and strings in , there must be a pair of complementary strings in . Let be one of these strings. Fill the grid such that the cell in the row and column is congruent to . This construction ensures that each row and each column is either or its complement, so we are done. |