m  =  {{n, (1/2) n (n + 1)}, {(1/2) n (n + 1), (1/6) 
            n (n + 1) (2  n + 1)}};

MatrixForm[m]

t = Inverse[m] // Simplify

(n - (n^3)) t  // Simplify // MatrixForm