Times[{{1,1,1}} . ( IdentityMatrix[3] - Transpose[{{0,1,0},{0,0,1},{0,0,0}}] ), {{1,1,1}} . Inverse[IdentityMatrix[3] - {{0,1,0},{0,0,1},{0,0,0}}]]