If $\alpha, \beta, \gamma$ are the roots of $p(x)=ax^3+bx^2+cx+d=0$ then $$p(\alpha)=p(\beta)=p(\gamma)=p(\alpha)+p(\beta)+p(\gamma)=0$$
Now set $S_n=\alpha^n+\beta^n+\gamma^n$ and the last equation tells us that $$aS_3+bS_2+cS_1+3d=0$$
The sum of squares $S_2$ is easy to find from the symmetric polynomials, and $S_1$ is known. This observation avoids having to remember complicated formulae for the sums of powers. (We might put $S_0=3$)
Indeed for higher powers we can observe
$$\alpha^r p(\alpha)+\beta^r p(\beta)+\gamma^rp(\gamma)=0$$ which gives $$aS_{r+3}+bS_{r+2}+cS_{r+1}+dS_r=0$$ which enables us to compute the sums of powers successively.
Moreover, we can compute the formula for $S_2$ using a quadratic, as if only two roots were involved, so that $$aS_2+bS_1+2c=0$$ with $S_1=-\frac ba$ [1], so that $$S_2=\frac {b^2}{a^2}-2\left(\frac ca\right)$$ and this remains true for any larger number of roots. Similarly the formula for three roots which we can derive from the cubic applies for four or more roots too.
[1] we could even have deduced this from the linear equation $aS_1+b=0$