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