How to find the fifth power of a in the first line 1,1,2, the second line 1,2,1 and the third line 2,1,1 of matrix A

How to find the fifth power of a in the first line 1,1,2, the second line 1,2,1 and the third line 2,1,1 of matrix A

1 1 2
0 1 -1
0 -1 -3
1 1 2
0 1 -1
0 0 -4
(- 4) 5th power
-1024