Let Tn denote the number of triangles which can be formed using the vertices of a regular polygon on n sides. If Tn−1−Tn=21, then n equals