Sixteen dots are arranged in a grid. The distance between any two dots in the grid defined to be the minimum number of horizontal and vertical steps along the grid lines it takes to get from one dot to the other. For example, two adjacent dots are a distance apart, and two dots at opposite corners of the grid are a distance apart. The mean distance between two distinct dots in the grid is , where and are relatively prime positive integers. Find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This looks interesting in the context of the problem. Below is my brute-force approach: