CTK Exchange
Front Page
Movie shortcuts
Personal info
Awards
Reciprocal links
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sit's
Guest book
News sit's

Recommend this site

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "divergent series"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The CTK Exchange College math Topic #558
Reading Topic #558
Jupiter
guest
Feb-13-06, 03:18 PM (EST)
 
"divergent series"
 
   The series 1 + 1/2 + 1/3 + 1/4 + etc. is known to diverge very slowly. I believe to get a sum of 10 you need close to 12,360 terms.
To get higher sums the number of terms rises very rapidly.

Is the exact number of terms known for all the integer sums, say, up to 20? Or higher still?

I decline to do the sums by computer as the rounding errors will soon mount up and offset the calculation, unless you use double- or triple- length arithmetic, which will slow up the process so much as to make it impractical. Are exact answers known for sums beyond 20? Apologies if this problem has been dealt with before.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
alexb
Charter Member
1825 posts
Feb-13-06, 03:22 PM (EST)
Click to EMail alexb Click to send private message to alexb Click to view user profileClick to add this user to your buddy list  
1. "RE: divergent series"
In response to message #0
 
   The sums of the harmonic series behave like

ln(n) + g,

where g is known as Euler or Euler-Mascheroni constant. See, e.g.

https://mathworld.wolfram.com/Euler-MascheroniConstant.html


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
DWCantrell
guest
Feb-14-06, 06:10 PM (EST)
 
2. "RE: divergent series"
In response to message #0
 
   >The series 1 + 1/2 + 1/3 + 1/4 + etc. is known to diverge
>very slowly. I believe to get a sum of 10 you need close to
>12,360 terms.

To be exact, the first sum to exceed 10 has 12367 terms.

>To get higher sums the number of terms rises very rapidly.
>
>Is the exact number of terms known for all the integer sums,
>say, up to 20? Or higher still?

Yes, conjecturally at least, the exact number of terms is known for all positive integer n. Let g denote the Euler-Mascheroni constant, approximately 0.5772156649, mentioned earlier by Alex. Then the first sum to exceed n has exactly floor(e^(n - g) + 1/2) terms.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
mr_homm
Member since May-22-05
Feb-15-06, 05:03 PM (EST)
Click to EMail mr_homm Click to send private message to mr_homm Click to view user profileClick to add this user to your buddy list  
3. "RE: divergent series"
In response to message #2
 
   >>The series 1 + 1/2 + 1/3 + 1/4 + etc. is known to diverge
>>very slowly. I believe to get a sum of 10 you need close to
>>12,360 terms.
>
>To be exact, the first sum to exceed 10 has 12367 terms.
>
>>To get higher sums the number of terms rises very rapidly.
>>
>>Is the exact number of terms known for all the integer sums,
>>say, up to 20? Or higher still?
>
>Yes, conjecturally at least, the exact number of terms is
>known for all positive integer n. Let g denote the
>Euler-Mascheroni constant, approximately 0.5772156649,
>mentioned earlier by Alex. Then the first sum to exceed n
>has exactly floor(e^(n - g) + 1/2) terms.

I am not so sure that this is exact. The equation (52) at the mathworld link, which Alex gave in his post above, shows that the estimate given by ln(n) + g is a little bit low, specifically, by an amount between 1/(2n+1) and 1/(2n). Now, for any integer N, if you want to find n such that the n-1st harmonic sum, H(n-1) < N but H(n) >= N, it may happen that H(n) is just barely above N, i.e. H(n) = N + epsilon, and we have no apriori way of knowing just how small epsilon may be. Certainly epsilon may be no larger than H(n)-H(n-1) = 1/n, and this only about twice the size of the error in the ln(n) + g estimate, so it is quite likely that epsilon could fairly often be less than 1/(2n+1), in which case the estimate would say that H(n) < N, which is wrong. Therefore, this estimate may sometimes return an answer n+1 when the true answer is n.

It is also not easy to fix this problem. If we decided to use ln(n) + g + 1/(2n+1) as our estimate, that the estimate is still low, and the error is now at most 1/(2n(2n+1)). This makes it less likely that epsilon could be smaller than the error, but does not eliminate the possibility. The answer will sometimes still be wrong by one. If one wanted to work harder and get a succession of better estimates, it would improve the probability that each answer given by the estimate is correct, but it would never become a certainty, because there is no known lower limit on epsilon.

Another problem, which is of a more computational nature, is that we don't know all the digits of g. Using the estimate as an approximation to the true solution, one would expect that n is roughly exp(N-g), which means that the difference between H(n) and H(n+1) is about exp(g-N), or 10 ^(-(N-g)/2.3), since 10 is roughly exp(2.3). This means that an error in the ((N-g)/2.3)th decimal place of g would throw off the answer. I believe that the mathworld site mentions that g is known to about 104 million digits, so n cannot be found for N > 230,000,000.

These sorts of computational issues are often ignored in pure mathematics, but here I think they are relevant. Of course, if you only want estimates of n, rather than the exact integer, then everything is fine. However, questions in number theory or integer arithmetic in general often depend on knowing the precise integer in question, because its divisibility properties, etc, may be needed. So the answer above is either completely satisfactory or completely unsatisfactory, depending on one's point of view. Since I'm not trying to investigate number theoretic questions just now, I'm happy with the estimate.

Thank you

--Stuart Anderson


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
DWCantrell
guest
Feb-17-06, 07:18 AM (EST)
 
4. "RE: divergent series"
In response to message #3
 
   >>>The series 1 + 1/2 + 1/3 + 1/4 + etc. is known to diverge
>>>very slowly. I believe to get a sum of 10 you need close to
>>>12,360 terms.
>>
>>To be exact, the first sum to exceed 10 has 12367 terms.
>>
>>>To get higher sums the number of terms rises very rapidly.
>>>
>>>Is the exact number of terms known for all the integer sums,
>>>say, up to 20? Or higher still?
>>
>>Yes, conjecturally at least, the exact number of terms is
>>known for all positive integer n. Let g denote the
>>Euler-Mascheroni constant, approximately 0.5772156649,
>>mentioned earlier by Alex. Then the first sum to exceed n
>>has exactly floor(e^(n - g) + 1/2) terms.
>
>I am not so sure that this is exact.

Nor am I (or anyone else AFAIK). That's why I said "conjecturally".

I'm not sure when I first thought of the conjecture. Perhaps in 2001, in the course of investigating the inverse of H(x). In any event, it's unlikely that I was the first person to make that conjecture. And, yes, I was well aware of the type of concern you raise below.

Regarding that type of concern, please look at
<https://www.research.att.com/~njas/sequences/A002387>, in which Dean
Hickerson mentions "a simple heuristic argument" supporting the
conjecture. If you see anything wrong with his argument, please let us
and OEIS know! (BTW, that OEIS entry also shows that Benoit Cloitre knew of the conjecture in 2002. Also note that, in the title of that entry, the lower limit on the summation should obviously be 1, not 0.)

Regards,
David W. Cantrell


>The equation (52) at
>the mathworld link, which Alex gave in his post above, shows
>that the estimate given by ln(n) + g is a little bit low,
>specifically, by an amount between 1/(2n+1) and 1/(2n).
>Now, for any integer N, if you want to find n such that the
>n-1st harmonic sum, H(n-1) < N but H(n) >= N, it may happen
>that H(n) is just barely above N, i.e. H(n) = N + epsilon,
>and we have no apriori way of knowing just how small epsilon
>may be. Certainly epsilon may be no larger than H(n)-H(n-1)
>= 1/n, and this only about twice the size of the error in
>the ln(n) + g estimate, so it is quite likely that epsilon
>could fairly often be less than 1/(2n+1), in which case the
>estimate would say that H(n) < N, which is wrong.
>Therefore, this estimate may sometimes return an answer n+1
>when the true answer is n.
>
>It is also not easy to fix this problem. If we decided to
>use ln(n) + g + 1/(2n+1) as our estimate, that the estimate
>is still low, and the error is now at most 1/(2n(2n+1)).
>This makes it less likely that epsilon could be smaller than
>the error, but does not eliminate the possibility. The
>answer will sometimes still be wrong by one. If one wanted
>to work harder and get a succession of better estimates, it
>would improve the probability that each answer given by the
>estimate is correct, but it would never become a certainty,
>because there is no known lower limit on epsilon.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top
DWCantrell
guest
Apr-30-06, 08:14 AM (EST)
 
5. "RE: divergent series"
In response to message #4
 
   >>>>The series 1 + 1/2 + 1/3 + 1/4 + etc. is known to diverge
>>>>very slowly. I believe to get a sum of 10 you need close to
>>>>12,360 terms.
>>>
>>>To be exact, the first sum to exceed 10 has 12367 terms.
>>>
>>>>To get higher sums the number of terms rises very rapidly.
>>>>
>>>>Is the exact number of terms known for all the integer sums,
>>>>say, up to 20? Or higher still?
>>>
>>>Yes, conjecturally at least, the exact number of terms is
>>>known for all positive integer n. Let g denote the
>>>Euler-Mascheroni constant, approximately 0.5772156649,
>>>mentioned earlier by Alex. Then the first sum to exceed n
>>>has exactly floor(e^(n - g) + 1/2) terms.
>>
>>I am not so sure that this is exact.
>
>Nor am I (or anyone else AFAIK). That's why I said
>"conjecturally".
>
>I'm not sure when I first thought of the conjecture. Perhaps
>in 2001, in the course of investigating the inverse of H(x).
>In any event, it's unlikely that I was the first person to
>make that conjecture. And, yes, I was well aware of the type
>of concern you raised below.
>
>Regarding that type of concern, please look at
><https://www.research.att.com/~njas/sequences/A002387>, in
>which Dean Hickerson mentions "a simple heuristic
>argument" supporting the conjecture. If you see anything
>wrong with his argument, please let us and OEIS know!
>(BTW, that OEIS entry also shows that Benoit Cloitre
> knew of the conjecture in 2002. Also note that, in
>the title of that entry, the lower limit on the summation
>should obviously be 1, not 0.)

Spurred by this discussion, I recently reconsidered how to invert
harmonic numbers and found an asymptotic series for the inverse. See
<https://groups.google.com/group/sci.math/msg/0926db8773d69b81>.
This allows us to give stronger conjectural answers to the question
posed here.

Previously, I had said conjecturally that "the first sum to exceed n
has exactly floor(e^(n - g) + 1/2) terms" and Dean Hickerson's
heuristic argument had shown that conjecture to be true with
probability > 97%. But now, for example, using just two more terms
of the asymptotic series, we can say, based on that same type of
heuristic argument, that with probability > 99.995%, the first
harmonic sum to exceed n has exactly

floor(u + 1/2 - 1/(24u) + 3/(640u^3)) terms,

where u = e^(n - g).

Regards,
David W. Cantrell


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

Conferences | Forums | Topics | Previous Topic | Next Topic

You may be curious to have a look at the old CTK Exchange archive.
Please do not post there.

|Front page| |Contents|

Copyright © 1996-2018 Alexander Bogomolny

Search:
Keywords:

Google
Web CTK