If 1a,1a+d,1a+2d,... are in HP, then the nth term of the HP is
a+(a+d)+(a+2d)+....+(a+(n−1)d)=n2[2a+(n−1)d]