T:=\{0,1,\ldots,\frac{p-1}{2}\}