In every cell of a table with $n$ rows and $m$ columns is written one of the letters $a$, $b$, $c$. Every two rows of the table have the same letter in at most $k\geq 0$ positions and every two columns coincide at most $k$ positions. Find $m$, $n$, $k$ if \[\frac{2mn+6k}{3(m+n)}\geq k+1\]
Problem
Source: 2022 Bulgarian Spring Math Competition, Problem 11.3
Tags: combinatorics, table, inequalities