Sol. Let the first term be a and the common difference be d.
Step 1 — write the two given conditions.
Sm=n⇒2m[2a+(m−1)d]=n⇒2am+m(m−1)d=2n⋯(1)
Sn=m⇒2n[2a+(n−1)d]=m⇒2an+n(n−1)d=2m⋯(2)
Step 2 — subtract (2) from (1).
2a(m−n)+d[m2−m−n2+n]=2n−2m
Group the bracket:
m2−n2−(m−n)=(m−n)(m+n)−(m−n)=(m−n)(m+n−1)
So
2a(m−n)+d(m−n)(m+n−1)=−2(m−n)
Step 3 — divide by (m−n). Since m=n, m−n=0:
2a+(m+n−1)d=−2⋯(3)
Step 4 — find Sm+n.
Sm+n=2m+n[2a+(m+n−1)d]
Using (3):
Sm+n=2m+n×(−2)=−(m+n)
Check with numbers. Take m=1 and n=2. We need S1=2 and S2=1, so the first term is 2 and the second term is 1−2=−1, giving d=−3. The AP is 2,−1,−4,… and
S3=2−1−4=−3=−(1+2) ✓
Hence proved: the sum of the first (m+n) terms is −(m+n).