You correctly divided both sides by n, but you divided one side by T while multiplying the other by T. You need to divide both sides by T.