$M$ is in the center of $M_n(R)$ iff $M$ commutes with all matrices $E_{ij}$ (the $(i,j)$th entry equals $1$ and others $0$). From here you can easy obtain the answer.
$M$ is in the center of $M_n(R)$ iff $M$ commutes with all matrices $E_{ij}$ (the $(i,j)$th entry equals $1$ and others $0$). From here you can easy obtain the answer.