inputs = input().split() z = float(inputs[0]) n = int(inputs[1]) m = int(inputs[2]) s = 0 for k in range(n,m+1): s+= k*z**k print("{:.2E}".format(s))