#Lutece1051. Eggs broken
Eggs broken
Migrated from Lutece 1051 Eggs broken
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
There is a building which is floors high. Bob has same eggs now. It is known that, the egg will be broken if Bob throws it from the floor. Now Alice is wondering, what's the minimum expected times Bob will throw eggs until he finds the smallest , if Bob throws an egg from the floor the egg will be broken.
The is distributed in uniformly.
As is known to everyone of you, Bob loves Alice very much. Could you tell Bob the answer to help Bob leave a good impression on Alice.
Input
The first line contains two integers and , which denote the number of floors and the number of eggs Bob has now.
It is guaranteed that
Output
Print the minimum expected times Bob will throw eggs in one line.
The answer should be rounded to digits after the decimal point.
Samples
4 2
2.00000
Resources
The 13th UESTC Programming Contest Final