home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!news.umbc.edu!math9.math.umbc.edu!rouben
- From: rouben@math9.math.umbc.edu (Rouben Rostamian)
- Subject: Re: 1+1/2+1/3+1/4+...+1/n
- Message-ID: <1992Nov19.164239.14756@umbc3.umbc.edu>
- Sender: newspost@umbc3.umbc.edu (News posting account)
- Organization: University of Maryland Baltimore Campus
- References: <92324.132329K3032E2@ALIJKU11.BITNET>
- Date: Thu, 19 Nov 1992 16:42:39 GMT
- Lines: 16
-
- 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
-
- :-)
-