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