First off, I have this matrix A:
1 0 3
1 0 2
0 5 0
I have calculated the eigenvalues, which are (11-sqrt(141))/2 and (11+sqrt(141))/2. From what I understand, if I don't have 3 distinct eigenvalues then the matrix is not diagonalizable in R. Is this matrix diagonalizable in R?
The second part of my question is: if it's not diagonalizable then what other option do I have for calculating A^n? n is really big, something like the order of 10^12. I need to calculate this for a programming problem.
Check the Jordan decomposition (diagonal matrix + nilpotent). But as pointed out in the comments, if you raise something to the power $10^{12}$, don't expect your computer to be able to handle it.