Math Problem - 16

ch_ts

Veteran
Joined
Apr 25, 2008
Messages
251
So there hasn't been a math problem for a while so I'll post one of my own. I made it up myself so hopefully nobody has seen it before. :)

-------

The series:

1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ...

is known to diverge. Find the minimum value of Z so that

1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ... + 1/Z > 100

Actually I want you to estimate Z by finding values of a and b such that a < Z < b.
 
If you're not sure the series diverges, read that :

Suppose U(n) = 1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ... + 1/n converges.

U(2n)-U(n) has to converge to 0.

U(2n)-U(n)=sum(k=n+1;2n;1/k) >= sum(k=n+1;2n;1/2n) = 1/2 <> 0.

So, it diverges.



Thank you Euler.
 
Last edited:
So there hasn't been a math problem for a while so I'll post one of my own. I made it up myself so hopefully nobody has seen it before. :)

-------

The series:

1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ...

is known to diverge. Find the minimum value of Z so that

1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ... + 1/Z > 100

Actually I want you to estimate Z by finding values of a and b such that a < Z < b.

I'm going to be lazy and give a crap estimate.

2^100 - 1 < Z < 2^198. What a silly estimate.

Crap method for the above using lame 14th century techniques. :P

Note that Hn is roughly equal to ln n for large n (Hn though does remain roughly 0.577 greater). Then:

Let g be the Euler-Mascheroni constant.

Ha < 100 < Hb
will look something like
ln a + g < 100 < ln b + g
ae^g < e^100 < be^g
a < e^(100-g) < b

I'll set a = e^(100-g) b = e^100. And if that's not tight enough or just flat out wrong, I refuse to try again.
Bleh I'm lazy, Lucas where are you?
 
Last edited:
What about b?

How would/could you make a and b tighter??

e^100 is a pretty good lower bound
 
Bah, who doesn't love brute-forcing by binary approximation?

Assuming you want Z to be an integer, a=15092688622113788323693563264538101449859497-ε
b=15092688622113788323693563264538101449859497+ε

Piercy: He says it's known to diverge.
ch_ts: That's an upper bound. ;)
SK: That's ridiculously tight, yes, because your middle expression happens to floor to Z. :p
 
Lucas Garron: No, that's a lower bound. :)

Consider a (much) smaller example:

1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ... + 1/Z > S
with S=3

e^3 is about 20 and the actual answer is 31
 
Lucas Garron: No, that's a lower bound. :)

Consider a (much) smaller example:

1/2 + 1/3 + 1/4 + 1/5 + 1/6 + ... + 1/Z > S
with S=3

e^3 is about 20 and the actual answer is 31

No, I think Lucas was referring to your question about b, and your inequality expresses b as an upper bound, not a lower bound.

As for the value(s) Lucas gave in his latest post...


EDIT: I guess you can't hide links in spoilers? :)
 
Last edited:
Hmm. In the link Bruce posted the series starts with 1 but I started with 1/2. Is that the common way of doing these things?

Anyway, what I did was visualize it as plotting:
y=1/2 from x=1 to x=2
y=1/3 from x=2 to x=3
y=1/4 from x=3 to x=4
etc.

The sum would be the area of the rectangles. Note that the area is bounded above by f(x)=1/x and below by g(x)=1/(x+1). So integrating f(x) and g(x) gives me a simple and quick way to estimate Z.
 
If you didn't know, the series just like the one stated in the problem except starting with 1/1 (or simply 1 if you like) instead of 1/2 is known as the harmonic series, and the sum through the nth term of that series is known as the nth harmonic number. Hence the H notation used by SK, LG, and at the OEIS link I provided.

LG apparently overlooked that you were leaving out the first term of the well-studied series, and didn't make appropriate adjustment. And I failed to catch that, too. My bad. BTW, I found that OEIS link on the mathworld.com web page for Harmonic Series.
 
SPOILER BELOW
I sent my friend the problem and he replied me with this email:

Yo guys, I solved the Harmonic Series Problem!

(1/2 + 1/3 + 1/4 + 1/5 + ..... + 1/Z > 100, find minimum Z.)

Answer is:

41026181224082496549292551639926922538250701.


You might want to find some way to test it. Anyway, how i did it was I estimated it to be above e^100.42. I then found it was
between e^100.42 (40912109468436078860352025620815592520941568) and e^100.43 (41323283004359849597207039619783318071934976),
which was great for me. I finally found it to be
between e^100.4227 (41022721422942869432936344816433418704257024) and e^100.4228 (41026823900205157703951120360057789432725504).

I used powers of e to get the rough range only and only found the sum for 10 values of e.

After this, i stopped using e and started using a binary search method on the digits. This i did by placing a minimum and a maximum and then trying to reduce the possible range by half by guessing a number somewhere in the middle of the range, either increasing the minimum or reducing the maximum. I did this digit by digit, which is not the most efficient way, but is definitely the most efficient way by hand. This was really tiring, since for each of the 40 digits in the range defined by e, i had to go through 3-5 binary reductions (guess 3-5 digits) to reduce it to 2? Thus i had to do guess and do calculations for no less than (actually, exactly) 155 reductions, finally arriving at the answer.

Thus I arrived at the answer I did with absolutely no programming, just manually utilising the program Mathematica. The actual reducing (not including understanding) took me 45-75 min. However, this could not have been done without the help of Mathematica's wonderful computing speed, which surprised me since it could calculate a 40+ digit summation in a matter of seconds (no more than 5). The original Mathematica notebook i used to deduce the answer is attached.


Wayne
 
How about using the actual spoiler tag? Nevertheless,

After this, i stopped using e and started using a binary search method on the digits. This i did by placing a minimum and a maximum and then trying to reduce the possible range by half by guessing a number somewhere in the middle of the range, either increasing the minimum or reducing the maximum. I did this digit by digit, which is not the most efficient way, but is definitely the most efficient way by hand. This was really tiring, since for each of the 40 digits in the range defined by e, i had to go through 3-5 binary reductions (guess 3-5 digits) to reduce it to 2? Thus i had to do guess and do calculations for no less than (actually, exactly) 155 reductions, finally arriving at the answer.

That sounds painful, and I'll refrain from calling it any more than "silly."
Just automate it! That's what I did:
Code:
xx = Table[0, {101/Log[2]}];
Do[yy = Table[KroneckerDelta[n, m], {m, Length[xx]}];
If[HarmonicNumber[FromDigits[xx+yy, 2]] < 101, xx = xx+yy],
{n, Length[xx]}]; FromDigits[xx, 2] + 1
Same thing, but without the handwork, and if you're using Mathematica for computation anyhow, it's silly to do 40 binary approximations by hand. Could I still see the notebook, though? :)

Anyhow, sorry I didn't notice the missing 1 at the beginning. Even if I've never seen a mathematician leave out the 1. :rolleyes:

But, really:
Code:
In: E^(101-EulerGamma)//Ceiling
Out: 41026181224082496549292551639926922538250701
 
Wow I didn't expect you guys to take it so far. I should have added "no computers, you have only 1 minute, you may use a calculator" :)

btw Lucas, who are you calling a mathematician? :cool:

3.8 * 10^43 < Z < 4.4 * 10^43 was as far as I went (6e^98.55 and 7e^98.55)
 
Back
Top