In this challenge, you are given a polynomial $p(x)$ and a positive integer $k$. Your task is to compute the sum of the $k$-th powers of the roots of $p(x)$ (with multiplicity). In other ...

Sum of powers of polynomial roots – codegolf.stackexchange.com
alephalpha
