Let a1,a2 and d1,d2 be the first terms and common difference of two A.P s.
Suppose Sn1,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)d12a2+(n−1)d2=7n+14n+27
⇒a1+(n−12)d1a2+(n−12)d2=7n+14n+27
Put n−12=m−1, we get
⇒a1+(m−1)d1a2+(m−1)d2=7n+14n+27(∴n−12=m−1)
⇒n−1=2m−2
⇒n=2m−1
⇒am1am2=7(2m−1)+14(2m−1)+27
=14m−68m+23
⇒am1:am2=14m−6:8m+23
Now Ratio of 11 terms are
=14×11−6:8×11+23
=148:111
Ratio of rth terms =14r−6:8r+23
Ratio of nth term =14n−6:18n+23