Let a1,a2 and d1,d2 be the first terms and common difference of two A.P’s
Sn1 and Sn2 denote the sum of n terms of two A.P’s
Sn1Sn2=7n+14n+27 (Given)
∴n2[2a1+(n−1)d1]n2[2a2+(n−1)d2]=7n+14n+27
⇒[2a1+(n−1)d1][2a2+(n−1)d2]=7n+14n+27
⇒a1+(n−12)d1a2+(n−12)d2=7n+14n+27
Putting n−12=m−1, we get
a1+(m−1)d1a2+(m−1)d2=7×(2m−1)+14×(2m−1)+27 (∵n−12=m−1⇒n−1=2m−2⇒n=2m−1)
⇒am1am2=14m−68m+23
⇒am1:am2=14m−6:8m+23
Thus, the ratio of their mth terms is 14m−6:8m+23.