sum n^x,n=1 to N