Solution:
We shall use the following lemma.
Lemma. Let x, y and n be positive integers such that x+yxy>n. Then
x+yxy≥n+n2+2n+21
with equality if and only if {x,y}={n+1,n2+n+1}.
Proof of the lemma. Since xy>n(x+y), we have xy=n(x+y)+r, where r is a positive integer. Then (x−n)(y−n)=n2+r, which implies that x>n and y>n. Set x=n+d1 and y=n+d2. Then d1d2=n2+r. Now using the inequalities A+rr≥A+11 and d1+d2≤1+n2+r (the latter follows from d1+d2≤1+d1d2), we get
x+yxy=2n+d1+d2n2+d1d2+n(d1+d2)=n+2n+d1+d2r≥n+2n+n2+1+rr≥n+n2+2n+21
Note that the equality is attained if and only if {x,y}={n+1,n2+n+1}. This completes the proof of the lemma.
The condition of the problem implies that c(c2−c+1)=pab and a+b=q(c2+1), where p and q are positive integers. Therefore
c2+1c(c2−c+1)=a+bpqab=x+yxy
where x=pqa and y=pqb. Then
x+yxy=c−c2+1c2=c−1+c2+11
whence x+yxy>c−1. Now the lemma gives
x+yxy≥c−1+(c−1)2+2(c−1)+21=c−1+c2+11
Hence we have the case of equality and therefore
{x,y}={c,c2−c+1}
Since the numbers c and c2−c+1 are coprime and x=pqa, y=pqb, it follows that p=q=1. Hence {a,b}={c,c2−c+1}.