Let Tn be the number of all possible triangles formed by joining vertices of an n-sided reqular polygon. If Tn+1−Tn=10, then the value of n is;