A383420 Maximum (equal) number of red and blue tiles on an n X n matrix, where opposite colors cannot be adjacent diagonally or edgewise, and where a cluster of the same color can be no greater than n.
0, 0, 6, 8, 16, 24, 30, 38
Offset: 1
Examples
a(2) = 0, since red and blue tiles, regardless of the arrangement will always either border sideways or diagonally. a(3) = 6, a simple example could be: [R R R] [ ] [B B B]
Links
Formula
The lower and upper bounds apply to all n > 3.
k is the root of the smallest square greater than n, b = ceiling((n+1)/(k+1)). The variable x is defined as 5*((n+1)/(k+1) - b), if (n+1)/(k+1) - b > 0, otherwise x=0.
a(n) <= (b*k)^2 + n^2 - (n - x)^2 for all n.
a(n) => n^2/2, for n == 0 mod 4.
a(n) => (n^2 + n - 2)/2, for n == 1 mod 4.
a(n) => n^2/2 + n - 4, for n == 2 mod 4.
a(n) => (n^2 + n - 4)/2, for n == 3 mod 4.
Comments