There is an infinite grid board, with each cell containing a positive integer, such that the sum inside any rectangle is never a prime number, and at least one cell contains . Find the minimum possible value of the maximum number among all cells.
Solution
The answer is .
Note that the smallest number that can be placed next to is , but is a prime number, so there must be a among the cells.
| 4 | 8 | 6 |
|---|---|---|
| 8 | 1 | 9 |
| 6 | 9 | 9 |
The construction uses modulo and modulo in the cells surrounding the , and places in all cells outside these nine cells. In this way, the sum inside any rectangle containing more than one number is always a multiple of or .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.