T ( n ) = n + n n -1 2 = n 2 2 + n 2