M=[0,1,0,0,0;0,0,1,0,0;0,0,0,1,0;0,0,0,0,1;1,0,0,0,0]
M^2
M^3
M^4
% What happens when M is multiplied by itself five times?
M^5

M+M^2+M^3+M^4

