A239072 Maximum number of cells in an n X n square grid that can be painted such that no two orthogonally adjacent cells are painted and every unpainted cell can be reached from the edge of the grid by a series of orthogonal steps to unpainted cells.
0, 1, 2, 5, 7, 11, 15, 21, 26, 32, 39, 47, 55, 64, 74, 85, 95, 107, 119, 132, 146, 160, 175, 191, 207, 224
Offset: 0
Examples
For example, if n=6, the painted cells could be A1, A3, A5, B2, B6, C1, C3, C5, D6, E1, E3, E5, F2, F4, F6 (15 cells in all).
Crossrefs
Cf. A239231, a similar sequence, with one extra criterion - that the unpainted cells should be contiguous.
Extensions
Some values corrected, incorrect formula and values removed by Elliott Line, Aug 21 2014
a(12), a(16), a(22), a(24), a(25) have been corrected by Elliott Line at the suggestion of Greg Malen, Sep 02 2020
Comments