King and a Lot of Queens

Logic Level 1

What is the biggest number of White Queens that can be placed on a chessboard in such a way that a Black King, also placed on the board, is not under attack? You can place the King wherever you think is more profitable.

Bonus: Generalize it for a m × n m\times n chessboard.


This is the eighth problem of the set Look after the King!


The answer is 42.

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

Note that wherever the King is placed, no Queen can be placed in its same row, column or diagonals, but a Queen can be placed on any of the other empty squares. If we place place the King on and edge (including the corners), there will be 7 7 diagonal squares. This is the most profitable position to place the King because if we place the King closer to the center, the diagonals become bigger.

For a m × n m\times n , with m n m\le n , there are m n ( m + n + m ) + 2 = m n 2 m n + 2 mn-(m+n+m)+2=mn-2m-n+2 squares where a Queen can be placed, as each row consists of m m squares, each column consists of n n squares and there are a total of m m diagonal squares, and we're counting the King square three times.

When m = 8 m=8 and n = 8 n=8 , 64 16 8 + 2 = 42 64-16-8+2=42 Queens can be placed on the board. This is biggest number because if we place one more Queen, it will be placed on the King row, column or diagonal, thus, will be attacking the King.

I got the same general solution but in the form (n-2)*(m-1) where m<=n. Put the king in the corner and you get a n-1 by m-1 board with the diagonal taken out, the diagonal could be rotated to fit in one row of the remaining squares making a n-2 by m-1 rectangle.

Ben Muller - 2 years, 1 month ago
K T
Nov 15, 2018

Answer is 42. what was the question again?

..................read it

NSCS 747 - 11 months, 1 week ago
Jess Late
Apr 17, 2016

Its pretty simple when you draw it out. I'm not sure how to add a picture but draw an 8x8 board and place the king in one of the corners. If you know chess then you know that queens attack horizontally, vertically and diagonally. Cross out these squares and then count them. There should be 7 across, 7 down and 7 on the diagonal as well as the square the king is on. Thats 22 total, subtract from 64 (8x8 (the total number of squares)) and you get 42.

For the generalization I observed what happened with the 8x8 board.

Let m = squares across and n = squares down

The generalization I came up with is

(m-1)+(n-1)+((m+n)/2)-1)+1 which simplifies to 3/2m+3/2n-2

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...