Can you paint the cells of a 4x4 grid with 7 colours such that every pair of different colours is orthogonally adjacent at least once?
Bonus: Can you achieve this with one cell unpainted?
I wrote a program to convince myself there are no 15-cell colorings.
I found two solutions modulo rotations, reflections and color permutations.
Not an answer, moreso a simple counting proof that 14 cells or less cannot be done:
Consider the grid as follows:
0 1 2 3
4 5 6 7
8 9 A B
C D E F
It is then easy to see that for the first row, 0, 1, 2 each admit 2 unique pairs in a "lowercase r shape" (01, 04; 12, 15, NOT 10; 23, 26, NOT 21), and 3 admits the pair 37. Thus, each row admits 7 additional unique pairs, barring the last row, which admits 3: CD, DE, EF.
Thus the 4x4 grid admits 3x7+3 = 24 unique pairs. Removing a center removes 4 pairs, which destroys any possible solutions. So a 15-cell solution may be obtained via removing a corner square (which has been done), or an edge square (which has not yet been done).
Removing 2 corners re-introduces the problem of there only being 20 unique pairs, and so there are no solutions that use 14 cells.
Here's my solution to the standard problem:
I just started with 7 colors, and then added more in as needed (seeing which colors needed which adjacencies), while also keeping in mind that corners only have 2, edges have 3 and centers have 4 "pairs". this helps keep things balanced as the board fills up.