1076: 级数求和

内存限制:128 MB 时间限制:0.200 S
评测方式:文本比较 命题人:
提交:155 解决:41

题目描述

已知:lns="http://www.w3.org/1998/Math/MathML">=1+riptlevel="0">12+riptlevel="0">13++riptlevel="0">1。显然对于任意一个整数 lns="http://www.w3.org/1998/Math/MathML">,当 lns="http://www.w3.org/1998/Math/MathML"> 足够大的时候,lns="http://www.w3.org/1998/Math/MathML">>

现给出一个整数 lns="http://www.w3.org/1998/Math/MathML">,要求计算出一个最小的 lns="http://www.w3.org/1998/Math/MathML">,使得 lns="http://www.w3.org/1998/Math/MathML">>

公式如下:

输入

一个正整数 lns="http://www.w3.org/1998/Math/MathML">

输出

一个正整数 lns="http://www.w3.org/1998/Math/MathML">

样例输入 复制

1

样例输出 复制

2

提示

对于 lns="http://www.w3.org/1998/Math/MathML">100% 的数据,lns="http://www.w3.org/1998/Math/MathML">115