Grid game!

How many ways are there to select 5 squares from a 10 × 10 10 \times 10 grid, such that no 2 squares are in the same row or column?


Try my set: Let's play with polygons .


The answer is 7620480.

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.

3 solutions

Hasan Kassim
Apr 14, 2016

We have five squares to choose:

The first square to choose has 100 100 ways.

Now, consider a randomly chosen square. The second one should not belong to first's row and column, so we can neglect from the 100 100 ways, 19 19 ways (The shaded squares), Having ( 100 19 ) (100-19) ways for the second.

For the third square to be chosen, we should neglect the shaded rows and columns of each of the two previously chosen squares, but taking into consideration that the shaded areas will meet at 2 2 squares, thus, leaving us with ( 100 19 19 + 2 ) (100-19-19+2) ways for the third.

The walkthrough now is obvious: The shaded rows and columns of the third chosen square will meet the other shadings in 4 4 squares, leaving us with ( 100 19 19 + 2 19 + 4 ) (100-19-19+2-19+4) ways for the fourth.

The shadings of the fourth chosen square will meet the other shadings in 6 6 squares, leaving us with ( 100 19 19 + 2 19 + 4 19 + 6 ) (100-19-19+2-19+4-19+6) ways for the Fifth.

Therefore the number of ways to choose the five squares is: ( 100 ) ( 81 ) ( 64 ) ( 49 ) ( 36 ) = 914457600 (100)(81)(64)(49)(36) = 914457600 .

But this number of ways counts repeated possibilities, thus divide by 5 ! 5! to get the correct answer:

914457600 / 5 ! = 7620480 914457600/5! = \boxed{7620480}

Moderator note:

Great explanation. Clearly written and presented.

Right!! Exactly :)

Aniket Sanghi - 5 years, 2 months ago

I doubt 100 choice for first. As we do not have a reference point( like in a circular permutation ) for first, so we first place it randomly and then other have choice w.r.t. to it.

Correct me if I'm wrong...

Vishal Yadav - 4 years, 3 months ago
Tran Quoc Dat
Apr 8, 2016

The goal of the solution is to find how many sets of 5 points A ( x 1 , y 1 ) , B ( x 2 , y 2 ) , C ( x 3 , y 3 ) , D ( x 4 , y 4 ) A(x_1,y_1),B(x_2,y_2),C(x_3,y_3),D(x_4,y_4) and E ( x 5 , y 5 ) E(x_5,y_5) there are, which satisfy x i < x j x_i<x_j , y i y j y_i \neq y_j and 1 x i , y i 10 1 \leq x_i,y_i \leq 10 for all integers 1 i < j 5 1 \leq i<j \leq 5 .

How many ways to choose x x- values are there? It's C 10 5 C^5_{10} .

And how many ways to choose y y- values are there? Careful! It's P 10 5 P^5_{10} , not C 10 5 C^5_{10} . 'Cause for y y , group ( 1 ; 2 ; 3 ; 4 ; 5 ) (1;2;3;4;5) is different from group ( 2 ; 3 ; 4 ; 5 ; 1 ) (2;3;4;5;1) , but for x x , it's the same.

Number of ways: C 10 5 × P 10 5 = 7620480 C^5_{10} \times P^5_{10} =\boxed{7620480} .

Note: Generalising, the number of ways to choose k k points in a m × n m \times n grid such that no 2 2 squares are in same row or column, and k min(m,n) k \leq \text{min(m,n)} is C m k × P n k C^k_{m} \times P^k_{n}

Right!! Nice one!!

Aniket Sanghi - 5 years, 2 months ago
Aniket Sanghi
Apr 2, 2016

Ans is 100 * 81 * 64 * 49 * 36 / 5!

I got that it was the product of those 5 squares but why divide by 5?

A P - 5 years, 2 months ago

Log in to reply

Divide by 5 factorial......if your 1st combination is PQRST....it is same as QPRTS,QRTPS,RTQPSetc

Aniket Sanghi - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...