Question: How would you factor$$P(x)=x^7+3x^6+9x^5+27x^4+81x^3+243x^2+729x+2187$$
I thought for a while and realized that the coefficients are in powers of $3$, so $x=-3$ is a factor. Taking that factor out, we see that the septic is equal to$$P=(x+3)(x^2+9)(x^4+81)$$I'm wondering, however, if there is a quicker way to factor it because the original method was pretty tedious.