Algebraic properties of chromatic polynomials