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