sum of powers