home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / math / 15247 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.1 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!linac!att!bgsuvax!steiner
  2. From: steiner@andy.bgsu.edu (Ray Steiner)
  3. Newsgroups: sci.math
  4. Subject: Re: 1+1/2+1/3+1/4+...+1/n
  5. Message-ID: <Bxz5B2.KMG@andy.bgsu.edu>
  6. Date: 19 Nov 92 17:45:00 GMT
  7. Article-I.D.: andy.Bxz5B2.KMG
  8. References: <92324.132329K3032E2@ALIJKU11.BITNET> <1992Nov19.164239.14756@umbc3.umbc.edu>
  9. Organization: Bowling Green State University B.G., Oh.
  10. Lines: 21
  11.  
  12. rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
  13.  
  14. >In article <92324.132329K3032E2@ALIJKU11.BITNET> Mutter Christoph Johannes <K3032E2@ALIJKU11.BITNET> writes:
  15. >>I've a problem. I have to calculate the sum 1+1/2+1/3+1/4+...+1/n.
  16. >>The result should be 100. But my computer is far too slow, to solve this
  17. >>problem. I need the index n when the sum > 100.0
  18. >>And that exactly.  Has anyone calculated this? (Perhaps on a CRAY|) ?
  19.  
  20. >Here is a program that you may find useful.  It has been completely
  21. >debugged on my personal cray.
  22.  
  23. >sum = 0
  24. >for k=1 to 10^44
  25. >   sum = sum + 1/k
  26. >end
  27. >print sum
  28.  
  29. Is this a joke? (Flames kept under glass for now!)
  30. Ray Steiner
  31. -- 
  32. steiner@andy.bgsu.edu
  33.