Note.
If the eigenvalues of A are all distinct, their corresponding eigenvectors are linearly independent
and therefore A is diagonalizable.
It is possible for a matrix A to have n linearly independent eigenvectors while
it has eigenvalues with multiplicities grater than one.