Matrixm(5,5);m[1..4][0..]=m[(0..)%2][0..]=1;m[4][4]=2;ll@n;wt(*(m**n)[4]);