First, realize that the scratch is continuous. If the scratch is in one square, it will be in an adjacent square only if there is some point where the scratch crosses the border between them, and it will be in a non-adjacent square only if there is a sequence of adjacent squares for which the previous statement is true. The length of the scratch is one more than the number of boders crossed. [A curved scratch could possibly double back into an already counted square, lowering the expected total, but the problem states the scratch is a straight line.]
Second, realize that when it crosses the border between two adjacent squares, the scratch is also crossing the border between two adjacent ranks or two adjacent columns. [Again, a straight line cannot double back to cross twice.]
There are 8 columns, and so there are 7 borders between pairs of columns. Similarly, there are 7 borders btween pairs of ranks. The maximum number of borders that the scratch can cross is 14, so the length of the scratch is 14 + 1= 15.
(Submitted by TomM) |