Here a problem from Graph Theory I can not solve. There are $2023$ viewpoints on an island. We know that each viewpoint has line of sight to at least $42$ other viewpoints. You should note that, if a viewpoint $A$ has a line of sight with the viewpoint $B$, then also $B$ with $A$.
Furthermore, for two different viewpoints $a$ and $b$, there is a positive integer $n$ and viewpoints $A_1, A_2,\dots , A_{n+1}$ so that $A_1=a$ and $A_{n+1} = b$ and $A_1$ with $A_2$, $A_2$ with $A_3$ and $\dots A_n$ with $A_{n+1}$ has line of sight. We call the smallest such number $n$ the viewing distance between $a$ and $b$.
The question is to determine the greatest viewing distance that two different viewpoints can have under these conditions.
My approach: it seems as if I could be able to solve it with the pigeonhole principle, because I already solved a similar problem, but I do not know how, and it is a problem from Graph Theory.

Let us encode this as a graph theory problem. We seek a graph of maximum diameter (longest shortest path) that is connected, has 2023 vertices, has minimum degree 42.
A trivial upper bound for the diameter of a graph is the number of vertices minus 1, i.e. 2022 in our case. The only graph on 2023 vertices with diameter 2022 is a path. Increasing the minimum degree decreases the diameter, as we can in some sense "shortcut" using additional edges.
Let us tackle the same problem with some smaller numbers to get an idea of what is going on. Let us consider a graph with $7$ vertices and vertices, where all have degree at least $3$. Then every pair of non-neighbours have a neighbour in common, so the diameter is at most $2$. Since there can be non-neighbours, it is exactly 2. A similar type of analysis on distance $k$ neighbourhoods can be made for graphs with more vertices.
Another way to see this is as follows. Let us order the vertices $v_1, \dots, v_7$. Let us try to maximize the shortest path between $v_1$ and $v_7$. Without loss of generality, $v_1$ is adjacent to $v_2, v_3, v_4$. Greedily continuing like this, $v_2$ is also adjacent to $v_3, v_4$, $v_3$ is adjacent to $v_4$. Now, $v_1, v_2, v_3, v_4$ all have degree at least $3$. Repeat the same process from the other direction starting at $v_7$. We obtain two $K_4$ graphs glued at a vertex. The same type of construction, gluing copies of $K_4$ in this pathlike way, would work for any number of vertices $n$. Let us denote such a graph $G(n,3)$. Then, the diameter $d$ of $G(n,3)$ is $d = \lceil\frac{n}{4}\rceil$.
Now the analoguous construction for your numbers, $G(2023,42)$, has diameter $d=\lceil\frac{2023}{42}\rceil = 49$. Thus, the number you are looking for is at least 49; I believe it is exactly 49, perhaps you can prove this?