Prove that if A and B are 3×3 matrices over the field F, a necessary and sufficient condition that A and B be similar over F is that they have the same characteristic polynomial and the same minimal polynomial. Give an example which shows that this is false for 4×4 matrices.