This is the question which I am referring to
If the sum of $ m $ terms of an AP is equal to the sum of the next $ n $ terms of an AP as well as the sum of next $p $ terms then prove that
$$(m+n)\left[\frac {1}{m}- \frac {1}{p}\right]= (m+p)\left[\frac {1}{m}- \frac {1}{n}\right] $$
What I have tried is I equated
$$S_m=S_n = s_p$$
Then I know that next term of AP after $m$ terms is the first term of next n terms and using similar analogy for first term of $p$ terms I got the following expression.
$$\frac { m}{2}[2a+(m-1) d]= \frac { n}{2}[2(a+md)+(n-1) d]= \frac { p}{2}[2(a+(m+n) d)+(p-1) d] $$
After this I was not able to figure out how to move towards solution. So it would be a help to guide me towards the proof.