This week the #puzzle is: Can You See Between the Trees?
#geometry
| You are at the point (0, 0) on the coordinate plane. There is a tree at each point with nonnegative integer coordinates, such as (5, 6), (0, 7), and (9, 1). The trees are very thin, so that they only obstruct trees that are directly behind them. For example, the tree at (2, 2) is not visible, as it is obscured by the tree at (1, 1). |
| Now, you can’t see infinitely far in this forest. Suppose, for example, that the farthest you can see is 4 units. The diagram below shows the trees you would see and the angles between them: |
![]() |
| In truth, you can see much farther than 4 units into the forest. You’re not sure exactly how far you can see, but it’s pretty dang far. To be extra clear about this, the diagram above is just an illustration, and you can in fact see much farther than 4 units. |
| As you look around, you can make out very narrow angular gaps between the trees. The largest gaps are near the positive x-axis and the positive y-axis (similar to the illustrated case above). After those, the next largest pair of gaps are on either side of the tree at (1, 1), 45 degrees up from the x-axis. |
| Consider the view between 0 and 45 degrees up from the x-axis. The next largest pair of adjacent gaps in this range are on either side of what angle up from the x-axis? (To be clear, you are not considering the gap just above 0 degrees or the gap just below 45 degrees.) |
And for extra credit:
| The fifth largest pair of adjacent gaps in this range are on either side of what angle up from the x-axis? (Again, you are not considering the gap just above 0 degrees or the gap just below 45 degrees.) |

Highlight to reveal (possibly incorrect) solution:
To get a sense of the problem, I made a spreadsheet and played around with it a little. Then I wrote a program, that could easily handle much bigger distances. The answer seems to be the angle is 26.56505. This is the angle corresponding to (2,1).
(Observation: the big gaps occur around angles with a lot of potential hits. In this case (2,1), (4,2), (6,3) etc. There’s a lot of hits, because the first pair of coordinates have low values (2 and 1).)
And for extra credit:
Same program. The 5th pair of gaps, sorted on size, occurs at the angle 36.86990. This is the angle corresponding to (4,3).
