3,A1,A2,.....An,17
an=a+(n−1)d
inourcasean=17,a=3andnumberofterms=(n+2)
∴17=3+[(n+2)−1]d
17−3=(n+1)d
∴d=14n+1
Now,A1=a+d=3+14n+1
andAn=a+nd=a+n14n+1
asgiveninquestion
AnA1=31
Or3+14nn+13+14n+1=3
3(n+1)+14n3(n+1)+14=3
17n+33n+17=3
17n+3=3(3n+17)
17n+3=9n+51
8n=48
∴n=6