Since ∠MON=90∘, the product of the slopes of NO and OM is −1.
The slope of NO is n−0n2−0=n, since n=0 (points N and O are distinct).
The slope of OM is 21−041−0=21.
Thus, n×21=−1 or n=−2.
Since ∠ABO=90∘, the product of the slopes of BA and BO is −1.
The slope of BA is b−2b2−4=b−2(b−2)(b+2)=b+2, since b=2 (A and B are distinct).
The slope of BO is b−0b2−0=b, since b=0 (B and O are distinct).
Thus, (b+2)×b=−1 or b2+2b+1=0.
Factoring, (b+1)(b+1)=0 and so b=−1.
Since ∠PQR=90∘, the product of the slopes of PQ and RQ is −1.
The slope of PQ is p−qp2−q2=p−q(p−q)(p+q)=p+q, since p=q (P and Q are distinct).
The slope of RQ is r−qr2−q2=r−q(r−q)(r+q)=r+q, since r=q (R and Q are distinct).
Thus, (p+q)×(r+q)=−1.
Since p,q and r are integers, then p+q and r+q are integers.
In order that (p+q)×(r+q)=−1, either p+q=1 and r+q=−1 or p+q=−1 and r+q=1 (these are the only possibilities for integers p,q,r for which (p+q)×(r+q)=−1).
In the first case, we add the two equations to get p+q+r+q=1+(−1) or 2q+p+r=0.
In the second case, adding the two equations gives p+q+r+q=−1+1 or 2q+p+r=0.
In either case, 2q+p+r=0, as required.