We have:
a=9, d=17−9=8, Sn=636
We know:
Sn=2n[2a+(n−1)d]
Substitute the values:
636=2n[2(9)+(n−1)(8)]=2n[18+8n−8]=2n(8n+10)
1272=n(8n+10)⇒8n2+10n−1272=0
Solving the quadratic equation:
n=2⋅8−10±102+4⋅8⋅1272=16−10±40804=16−10±202
n=16192=12
Answer: 12 terms