Learn / Library / Brainteasers
Bishops at peace
On a by board, identical bishops are placed on different cells. A bishop attacks along diagonals. In how many ways can the bishops be placed so that they do not attack each other? Swapping the bishops is not a new placement.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count all pairs of cells, then subtract the pairs that share a diagonal.
Solution
- There are pairs of cells.
- The diagonals in one direction have lengths , , , , , , , , , , , and a diagonal of length holds attacking pairs, which gives .
- The other direction gives another pairs, and no pair shares a diagonal of both directions, so pairs attack.
- The number of peaceful placements is .
Answer: