#P4550. 收集邮票
收集邮票
Description
There are different kinds of stamps. Pipi wants to collect all kinds of stamps. The only way to collect is to buy from classmate Fanfan: each time Pipi can buy only one stamp, and which one of the kinds is obtained is equally likely, each with probability . However, because Fanfan also likes stamps, Pipi must pay yuan for the -th purchase.
Now Pipi has no stamps. Pipi wants to know the expected amount of money needed to obtain all kinds of stamps.
Input Format
One line, a single integer ().
Output Format
Output the amount of money to pay, with two decimal places.
3
21.25
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号