3

I was recently wondering if there is some quicker way to compute $x_1^k+x_2^k+\dots+x_n^k$ for any natural $k$ than just exponentiation and adding one-by-one? Thanks in advance.

1 Answers1

0

I can't think of a universal algorithm for any $x_1,\ldots ,x_n,k$, but you could use the exponentiation by squaring for fast exponentiation.

pajonk
  • 185