nth term of an A.P is:

a1 r n-1

a1 + (n-1)d