Home => ProblemSet => 1.5-27:级数求和
Problem1089--1.5-27:级数求和

1089: 1.5-27:级数求和

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 12  Solved: 5
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

已知:Sn= 1+1/2+1/3+…+1/n。显然对于任意一个整数K,当n足够大的时候,Sn大于K。

现给出一个整数K(1<=k<=15),要求计算出一个最小的n;使得Sn>K。

Input

一个整数K。

Output

一个整数n。

Sample Input Copy

1

Sample Output Copy

2

Source/Category