<filename>Codeforces/A_Little_Pony_and_Expected_Maximum.py
m,n = map(int,input().split())
ans = 0
for i in range(1,m+1):
    ans+= (i)*((i/m)**n - ((i-1)/m)**n)
print(ans)
<filename>Codeforces/A_Little_Pony_and_Expected_Maximum.py
m,n = map(int,input().split())
ans = 0
for i in range(1,m+1):
    ans+= (i)*((i/m)**n - ((i-1)/m)**n)
print(ans)