Let M be ⎡⎢⎣abcdefghi⎤⎥⎦.
Now from the first condition ⎡⎢⎣abcdefghi⎤⎥⎦⎡⎢⎣010⎤⎥⎦=⎡⎢⎣−123⎤⎥⎦
we get the values of b,e,h as−1,2,3 respectively.
Newly formed matrix M =⎡⎢⎣a−1cd2fg3i⎤⎥⎦
From the second condition
⎡⎢⎣a−1cd2fg3i⎤⎥⎦⎡⎢⎣1−10⎤⎥⎦=⎡⎢⎣11−1⎤⎥⎦
Solving the matrix, we get three equations
⇒a+1=1,d−2=1,g−3=−1
⇒a=0,d=3,g=2
Modified matrix M =⎡⎢⎣0−1c32f23i⎤⎥⎦
Now the third and the last condition, ⎡⎢⎣0−1c32f23i⎤⎥⎦⎡⎢⎣111⎤⎥⎦=⎡⎢⎣0012⎤⎥⎦
⇒2+3+i=12⇒i=7
Sum of the diagonal entries of M=a+e+i=0+2+7=9