What is the largest rectangular NxM grid (by area) that can be painted with 3 colours, such that no three cells of the same colour form a right-angled triangle. N and M must be 4 or greater. We only consider right-angled triangles whose legs are parallel to the grid's edges. For example the following is not allowed:
x.....x ....... x......
while the following is allowed
...x... ....... x.....x
Here is a similar question: Painting a 10x10 grid with 3 colours
Good luck!