Let the first term of AP be a and the common difference be d.
⇒ An = a+(n -1)d
pth term is a+(p -1)d.
qth term is a+(q -1)d.
rth term is a+(r -1)d.
As they are in GP.
Let the first term be A and common ratio be R.
⇒ a+(p -1)d = A…(1)
⇒ a+(q -1)d = AR…(2)
⇒ a+(r -1)d = AR2…(3)
Subtracting 2 from 1 we get…
AR - A = a+(q -1)d - (a+(p -1)d)
= a+qd - d - a - pd+d
AR - A = qd - pd…
Subtracting 2 from 1 we get…
AR2 - AR = a+(r -1)d - (a+(q -1)d)
= a+rd - d - a - qd+d
R(AR - A) = rd - qd.