Let Tn denotes the number of triangles which can be formed by using the vertices of a regular polygon of n sides. If Tn+1 − Tn=21, then n is equal to