# Program to find the sum of series 1/1+1/2+1/3..+1/N 
 
print("Enter the range of number:")
n=int(input())
print("Enter the value of x:");
x=int(input())
sum=0
i=1
while(i<=n):
    sum+=pow(x,i)
    i+=2
print("The sum of the series = ",sum)