How many ways are there to paint a grid with four colors such that each row or column has all four distinct colors?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Not sure if there is a more intuitive solution, but this is what I came up with.
There are 24 ways to pick the colors first row.
Once these are picked there are 6 ways to pick the remaining colors in the first column.
Then, for each of these there are 4 ways to color the remaining squares.
2 4 ⋅ 6 ⋅ 4 = 5 7 6