Let a1,a2 be the first terms and d1,d2 the common diference of the two given A.P's. Then the sums of their n terms are given by
Sn=n2{2a1+(n−1)d1}, and Sn′=n2{2a2+(n−1)d2}
∴SnSn′=n2{2a1+(n−1)d1}n2{2a2+(n−1)d2}=2a1+(n−1)d12a2+(n−1)d2
It is given that
SnSn′=7n+14n+27
⟹2a1+(n−1)d12a2+(n−1)d2=7n+14n+27 ...(i)
To find the ratio of the terms of the mth terms of the two given A.P's, we replace n by (2m−1) in equation (i).
Replacing n by (2m−1) in equation (i), we get
2a1+(2m−2)d12a2+(2m−2)d2=7(2m−1)+14(2m−1)+27
⟹a1+(m−1)d1a2+(m−1)d2=14m−68m+23
Hence, the ratio of the mth terms of the two A.P's is (14m−6):(8m+23).