On the second line, for the det(λ I3 - A), the (2,1) entry should have been -1/4, not 1/4. The minus sign was also missing from the last determinant on the third line, in position row 1, column 1:
-1/4 | -1/2 | |
-1/4 | λ - 1/2 |
An=knA+kn-1I2,
with three flow-on errors on lines -3 and -4.