In order to solve this question quickly we need two recall two concepts.
1. If λ is an eigenvalue of A then λk is an eigenvalue of Ak.
2. The sum of all eigenvalue of A is equals to the trace of A.
Let A be the given 2×2 matrix. Let λ1 and λ2 be two eigenvalues of A. Note that the given matrix is a upper triangular matrix. So its eigenvalues are nothing but its diagonal entries. Therefore,
λ1=1andλ2=i
Therefore, the eigenvalues of Ak are
λk1=1andλk2=ik
Note that trace(A2018)=a+d, that is sum of the eigenvalue of A2018. It follows
a+d=trace(A2018)=λ20181+λ20182=1+i2018=1−1=0.
Therefore, the correct option is (B).