More paint, more grid

In the picture below, you see a 4 × 4 4 \times 4 grid colored in such a way that no color appears more than once on any row or any column.

How many ways can we color a 5 × 5 5 \times 5 grid using 5 5 different colors if no color appears more than once on any row or any column?


Inspiration .


The answer is 161280.

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.

1 solution

Efren Medallo
May 21, 2017

This is a simple application of Latin squares, a concept which I have recently learned from Mr. Mark Hennings.

If we assign the colors a number from 1-5, then we can see that our problem looks for the number of arrangements of squares such that no number occurs on any row, or column twice.

This number is given by the formula

N = n ! ( n 1 ) ! L ( n , n ) N = n!(n-1)! L(n,n)

where n n represents the number of rows/columns in the grid, and L ( n , n ) L(n,n) is the number of "normalized" Latin squares of order n n . A normalized Latin square is one whose elements in the first row and column are ordered as 1 , 2... n 1,2...n .

Plugging in n = 5 n=5 , we get

N = 5 ! 4 ! L ( 5 , 5 ) N = 5!4! L(5,5)

And since L ( 5 , 5 ) = 56 L(5,5) = 56 , we see that N = 120 × 24 × 56 = 161280 N= 120 \times 24 \times 56 = \boxed{161280}

You need to prove that L ( 5 , 5 ) = 56 L(5,5) = 56 ; that's the non-trivial part.

Ivan Koswara - 4 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...