enter x &n and display sum of following series
x1 +x2 +x3+- - - - - - - -+xn(1,2,3,-----,n are powers of x)