Simplify 2p(p^2-6p+1)