You are given an arbitrarily large grid, where each square can either be off or on (think Game-of-life type board).
You need to tile such a grid to maximize the number of "on" squares without there being any 3-in-a-row of "on" squares. A 3-in-a-row can be horizontal, vertical, or diagonal. 3-in-a-row of "off" squares are allowed.
The best tiling I could come up with is
101010101010
101010101010
010101010101
010101010101
which gives a ratio of 1/2. The best upper bound I have is 6/9 (as you can't fit 7 on any non-wrapping 3x3 square). I believe the optimal solution will be periodic, but if it isn't then that is OK.
Is the tiling above the optimal tiling? Can this problem be generalized to N-in-a-row?
The upper bound can be tightened considerably by looking at 13x13 squares, where the best possible pattern is 86, giving an upper bound of 86/169 $\approx$ 0.5088
Edit: and slightly more with 15x15, which give 114/225 $\approx$ 0.5067