sum k^m, k=1 to k=n