Royal attack

How many different ways can you place kings on a 3x3 grid such that each king attacks exactly two other kings?

Note : A king is a chess piece that can move to (or attack) any adjacent square, including being diagonally adjacent. All kings are indistinguishable.


The answer is 17.

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.

2 solutions

Geoff Pilling
Oct 27, 2017

There is one way to arrange four kings (one in the middle of each edge),

And wiith three kings you can fill any three squares of any of the 2x2 sub-grids, and for each of the 4 sub-grids there are 4 ways to choose the vacant square, for a total of 16 ways.

This gives a total of 1 + 16 = 17 1+16 = \boxed{17} ways.

but don't we need to prove why can't we do more than 4 kings?

Mehdi K. - 3 years, 6 months ago
Jason Carrier
Sep 29, 2018

Place a king in one of the corners. Then, 2 of the three squares adjacent must also contain kings. Since all three squares are in range of each other, these additional kings will be already satisfied. There therefore cannot be any other kings on the board, as they would be adjacent to one of these three. There are 4 corners, and three ways of picking the other two, so there are 12 cases with a king in a corner.

Any remaining cases don’t use the corners, so we are now searching a cross with five spaces. If we place one in the center, all four remaining spaces touch it, so only two more kings can be placed. Since they must also touch each other, to satisfy their own requirements, there are 4 of these cases.

Finally, if we say there are no kings in the corners or center, we have one more case where all four remaining spaces have kings. So, the total is 12 + 4 + 1 = 17 \boxed{17}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...