Answer

问题及解答

找到 $N$, 使得 $\sum\limits_{n=1}^{N}\dfrac{1}{n}<2\pi$, 但 $\sum\limits_{n=1}^{N+1}\dfrac{1}{n}>2\pi$.

Posted by haifeng on 2024-12-16 14:10:59 last update 2024-12-16 14:11:51 | Edit | Answers (1)

找到 $N$, 使得 $\sum\limits_{n=1}^{N}\dfrac{1}{n}<2\pi$, 但 $\sum\limits_{n=1}^{N+1}\dfrac{1}{n}>2\pi$.

 

 

Answer:  $N=300$.

1

Posted by haifeng on 2024-12-16 14:24:38

启动 Sowya, 输入 :mode clox 进入编程模式.
 
{
fun f(){
var N=0;
var sum=0;
var pi=3.141592653589793238462643383279;
pi=2*pi;
  while(sum<pi)
  {
    N=N+1;
    sum=sum+1/N;
  }
  print "N=",N-1;
}
}