The equations are:
Matlab:
A=[0,0,0,1,0,0,0,0; 1,1,1,1,0,0,0,0; 0,0,0,0,0,0,0,1; ... 0,0,0,0,1,1,1,1; 3,2,1,0,0,0,-1,0; 0,2,0,0,0,0,0,0; ... 0,0,0,0,6,2,0,0; 6,2,0,0,0,-2,0,0]; b=[1,0,0,2,0,0,0,0]’; a=A\b;