Greg825 said:
maybe a slightly simpler question would be what is the average sum of all numbers on a given board size x by y with mine count z.
Suppose z = 1 (a single bomb on the board) and x and y both greater than or equal to 3. Then there are x * y possible layouts.
For those layouts where the bomb is in a corner, the sum of all numbers is 3. There are 4 such layouts, for a subtotal count of 3 * 4 = 12.
For those layouts where the bomb is along an edge, but not in a corner, the sum of all numbers is 5. There are 2 * (x + y) - 8 such layouts for a subtotal count of 10 * (x + y) - 40.
For those layouts where the bomb is not along an edge and not in a corner, the sum of all numbers is 8. There are (x - 2) * (y - 2) such layouts for a subtotal count of 8 * (x - 2) * (y - 2).
Total count is 8xy - 6x - 6y + 4
The average count is total count divided by number of layouts:
average count = 8 - 6/y - 6/x - 4/xy
As x and y increase to infinity, the average number goes to 8. This just says that as the board gets larger, the bomb is less likely to be on an edge or in a corner.
The calculations for two or more bombs are much more complicated because bombs can be next to each other. However, just on logical grounds, I think that for a fixed z, as x and y increase to infinity, the average number goes to 8z. The reason is that as x and y increase to infinity, on average the bombs get sparser and sparser so that on average they rarely are next to each other. And at the same time, they are less and less likely to be on the edge or in a corner.