Given,
Common difference (d) = 2
Last term (l) = 18
Let no. of terms be n.
⇒ l = a + (n - 1)d
⇒ 18 = a + 2(n - 1)
⇒ 18 = a + 2n - 2
⇒ a + 2n = 20
⇒ a = 20 - 2n ………(1)
By formula,
Sn = 2n(a+l)
Substituting values we get :
⇒60=2n(a+18)⇒120=n(a+18)
Substituting value of a in above equation, we get :
⇒120=n(20−2n+18)⇒120=n(38−2n)⇒120=38n−2n2⇒2n2−38n+120=0⇒2(n2−19n+60)=0⇒n2−19n+60=0⇒n2−15n−4n+60=0⇒n(n−15)−4(n−15)=0⇒(n−4)(n−15)=0⇒n−4=0 or n−15=0⇒n=4 or n=15.
Hence, no. of terms = 4 or 15.