Expected Minimum Power
You are given two positive integers and .
You are going to choose distinct integers, each between and , inclusive. The choice will be made uniformly at random. That is, each of the possible -element subsets of the integers to is equally likely to be chosen.
Let be the smallest integer among the chosen ones. Compute the expected value of . In other words, determine the average value of to the power of , where the average is taken over all possible choices of the distinct integers.
Input
Two positive integers: and .
Output
Print the average value of to the power of with decimal digits.
Examples
In the first test case the only possible situation is that you will choose . In this case, the minimum is , and the expected value is .
In the second test case there are three equally likely scenarios: you will select either or or . The corresponding values of are and respectively. Thus, the average value of is .