Let m be the first term and n be the common difference.
a=m⋅np−1 (1)
b=m⋅nq−1 (2)
c=m⋅nr−1 (3)
Divide equation (2) by (3), (3) by (1) and (1) by (2),
n(q−r)=bc (4)
n(r−p)=ca (5)
n(p−q)=ab (6)
Take log on both sides of equation (4), (5) and (6),
(q−r)=(logb−logc)logn (7)
(r−p)=(logc−loga)logn (8)
(p−q)=(loga−logb)logn (9)
Multiply equation (7) by loga, equation (8) by logb and equation (9) by logc and add.
loga(q−r)+logb(r−p)+logc(p−q)=0