# 2021 JMPSC Invitationals Problems/Problem 7

## Contents

## Problem

In a grid with nine square cells, how many ways can Jacob shade in some nonzero number of cells such that each row, column, and diagonal contains at most one shaded cell? (A diagonal is a set of squares such that their centers lie on a line that makes a angle with the sides of the grid. Note that there are more than two diagonals.)

## Solution

Suppose all the squares are NOT fully covered by shaded squares. We have total cases that include this. Now, the center square already covers the whole grid, so we only need to consider edge squares. Each edge square has corner square options, so lines of symmetry dictates more cases. The answer is

~Geometry285

## Solution 2

If only one square is shaded, it is guaranteed to be a valid configuration. 9 boxes so choices for this case.

If two squares are shaded, the only way this can happen is a corner and an opposing edge. 4 corners and 2 valid edges for each corner, so choices in this case.

We see that we can have no more than two squares shaded, otherwise, no valid configurations occur. Thus, the answer is .

~BakedPotato66

## See also

- Other 2021 JMPSC Invitationals Problems
- 2021 JMPSC Invitationals Answer Key
- All JMPSC Problems and Solutions

The problems on this page are copyrighted by the Junior Mathematicians' Problem Solving Competition.