Characteristic equation: det(A−λI)=(3−λ)(−1−λ)+4=λ2−2λ+1=(λ−1)2=0.
By Cayley-Hamilton: (A−I)2=0.
Let N=A−I=[21−4−2]. Then N2=0 (nilpotent).
An=(I+N)n=I+nN
(since N2=0, all higher terms vanish).
A100=I+100N
Given A100=100B+I:
I+100N=100B+I
100B=100N
B=N=[21−4−2]
Since B=N and N2=0, we have B2=0, and therefore B100=(B2)50=050=0.
So B100 is the zero matrix, and the sum of all elements is 0.