6. (12 %) Let A be an $n \times n$ matrix with characteristic polynomial $$f(t) = (-1)^n t^n + a_{n-1} t^{n-1} + \cdots + a_1 t + a_0.$$ Prove that A is invertible if and only if a0≠0.