If mth term of an A.P. is n and nth term is m, then write its pth term.
We have,
am=a+(m−1)d=n
⇒a+(m−1)d=n……(i)
and, an=a+(n−1)d=n−m
⇒a+(n−1)d=m……(ii)
Subtracting equation (ii) from equation (i), we get
a + (m - 1)d - a - (n - 1)d = n - m
⇒(m−1)d−(n−1)d=n−m
⇒d(m−1−n+1)=n−m
⇒d(m−n)=n−m
⇒d=−(m−n)(m−n)
⇒d=−1
Putting d = -1 in equation (i), we get
a + (m - 1)(-1) = n
⇒a−m+1=n⇒a=n+m−1
Now,
ap=a+(p−1)d
=n+m−1+(p−1)(−1) [∵a=n+m−1] and d=−1
=n+m−1−p+1=n+m−p
ap=m+n−p
Hence pth term is m + n - p