In a board of $2021 \times 2021$ grids, we pick $k$ unit squares such that every picked square shares vertice(s) with at most $1$ other picked square. Determine the maximum of $k$.
This seems extremely familiar but maybe I'm confusing it with some other related problem. I searched it up on all math sites I know, but I didn't find anything about it.
Examples:
$1\times 1$ grid: Trivially, the answer is $1$.
$2 \times 2$ grid: The answer is $2$.
$3\times 3$ grid: Experimenting, we see that the answer is $4$.
$4 \times 4$ grid: Here's where it starts to get complex. So, we number the squares:
$$1 \quad 2 \quad 3 \quad 4$$
$$5 \quad 6 \quad 7 \quad 8$$
$$9 \quad 10 \quad 11 \quad 12$$
$$13 \quad 14 \quad 15 \quad 16$$
We have two options that came to my mind while optimizing:
- pick $5,9,7,8,15,16$. This gives us $6$ squares.
- CREDIT TO PREM: $1,2,4,8,16,15,9,13$. This gives us $8$ squares.
So, our answer for a $4\times 4$ grid is $8$.
Now, for an arbitrary $n \times n$ grid, I don't know what to do. My idea is to use recursion from the results for the previous smaller grids, but I'm not sure how exactly to do this. My idea might be completely off-track, so if you have a better idea, you can comment it.
Could somebody please help?





The following MiniZinc model confirms the first numbers of the OEIS sequence A260090 $(1, 2, 4, 8, 12, 16, 21, 26, 33, ...)$ referenced in the comments:
Example solution for $n=8$:
Using the COIN-BC solver (COIN-OR CBC) backend, the solution time for $n=9$ is about one minute. CPLEX 12 with $8$ threads found a solution for $n=11$ in $2.5$ minutes.