If x,y∈Z+, define x↔y if and only if x,y are connected by some edge. We have for all a∈Z+,
a2+a+1∣(a2−a+1)(a2+a+1)=a4+a2+1.
Thus a↔a2 for all a, then also true for a+1↔(a+1)2. Moreover,
(a2)2+((a+1)2)2+1=2a4+4a3+6a2+4a+2=(2a2+2a+2)(a2+a+1)
Thus a2+(a+1)2+1=2a2+2a+2 divides (a2)2+((a+1)2)2+1, which implies that a2↔(a+1)2. Hence,
a↔a2↔(a+1)2↔a+1,
this means that every two consecutive integers a,a+1 are connected. Thus the given infinity graph is connected. □