Author Topic: Help?  (Read 5504 times)

0 Members and 1 Guest are viewing this topic.

Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
Help?
« on: March 27, 2007, 06:13:17 pm »
Evaluate:


∑ ( n/(n+1)! )
n=1


Now, I know that the damn thing is equal to 1, however I'm having trouble showing/proving this... I'd greatly appreciate any help.  Thanks.
« Last Edit: March 27, 2007, 06:22:18 pm by Michael »
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Help?
« Reply #1 on: March 27, 2007, 08:12:07 pm »
1/2 + 1/6 + 1/24 ... + 0 ~= 1
It's approximately 1, IIRC.

[edit]
Take the limit.

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Help?
« Reply #2 on: March 27, 2007, 09:00:11 pm »
It's a telescoping series.  It's sort of tricky to get it in that form.




Offline Ender

  • Moderator
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: Help?
« Reply #3 on: March 27, 2007, 09:08:06 pm »
1/2 + 1/6 + 1/24 ... + 0 ~= 1
It's approximately 1, IIRC.

[edit]
Take the limit.

You've misrepresented the series. The numerator is a variable. And "take the limit" isn't really helpful.

Prove that the series of n / (n + 1)! from n = 1 to infinity converges to 1.

Proof:

We are going to prove that the series converges to 1 by mathematical induction. Let S(n) be the nth partial sum of the series.

Assume that S(n) = [(n+1)! - 1] / (n + 1)!. Then S(n+1) = [(n+1)! - 1] / (n + 1)! + (n+1) / (n+2)!. Multiply the lefthand term by (n + 2) / (n + 2) to get a common denominator. Simplifying, you get S(n+1) = [(n+2)! - 1] / (n+2)!. Therefore, if S(n) is true for some n, then it is true for n + 1. 

We now consider the anchor case, n = 1. S(1) = [(1 + 1)! - 1] / 2 = 1/2.

Therefore, S(n) is true for all n, as proved by induction.

Now consider the limit of S(n) as n goes to infinity. lim S(n) as n->infinity = 1. Therefore the partial sum converges to 1.

Offline Ender

  • Moderator
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
Re: Help?
« Reply #4 on: March 27, 2007, 09:20:13 pm »
Clever solution, Sidoh. Just to make your solution more readily visible:

You can write out the 2nd partial sum in that format, getting.

(2/2 - 1/2) + (3/6 - 1/6)

You see that the middle terms cancel out, and that you end up getting 2/2 - 1/6. This will be true for any nth partial sum, and you will end up getting the first term minus the last term, that is 2/2 - 0 = 1, since the right-hand term will go to 0 as seen by the limit.


Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
Re: Help?
« Reply #5 on: March 27, 2007, 11:39:56 pm »
I was totally approaching the problem all the wrong ways. i.e. I tried representing the factorial as an integral, which ended up being Gamma functions >_<;

Thanks Sido and Ender.

@rabbit misread the series.

@Sido  That's what I forgot.  I tried to convert it to a geometric and harmonic series but forgot to try telescoping >_<;  Nifty solution, thanks. 

@Ender different method, same conclusion, thanks!

EDIT:  Sido do you use a program to create those images?  If so, may I ask what it is?
« Last Edit: March 28, 2007, 12:40:48 am by Michael »
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: Help?
« Reply #6 on: March 27, 2007, 11:47:03 pm »
EDIT:  Sido do you use a program to create those images?  If so, may I ask what it is?
Latex.
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Help?
« Reply #7 on: March 27, 2007, 11:57:22 pm »
I was totally approaching the problem all the wrong ways. i.e. I tried representing the factorial as an integral, which ended up being Gamma functions >_<;

Thanks Sido and Ender.

Sido's is quite a nifty solution.

Anyways, thanks.

EDIT:  Sido do you use a program to create those images?  If so, may I ask what it is?

No problem.

As Ergot mentioned, the images are generated through a Latex script I have on my server.  It renders the input and then chains it through an otherwise painful series of conversions (input(which is usually a simplified form of latex)->tex->dvi->gif, I think). 

Anyway, Latex is pretty easy to use.  You can access the script here.  There's links to Latex documentation on that page as well.  The images are generated on the fly (if you take a look at the paths to the ones I posted, you'll probably be able to see that), so you can either save them or post the URL straight into a post (with BBCode, obviously).

Oh, here's a post I made a while ago with some examples.
« Last Edit: March 28, 2007, 12:00:19 am by Sidoh »

Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
Re: Help?
« Reply #8 on: March 28, 2007, 12:12:48 am »
Nice!  I'll definitely be using the script whenever I boot into Windows... actually methinks I'll just use the script while in linux too.
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Help?
« Reply #9 on: March 28, 2007, 12:17:48 am »
Nice!  I'll definitely be using the script whenever I boot into Windows... actually methinks I'll just use the script while in linux too.

Well (if you didn't get the idea from poking around with it), it's totally web based.  As long as you have a browser that supports some minimal javascript, then you can use it under any OS.

By the way, welcome to x86.  I forgot to mention that before.  If you plan on sticking around, make a post in the introduction forum if you'd like. :)

Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
Re: Help?
« Reply #10 on: March 28, 2007, 12:33:40 am »
Nice!  I'll definitely be using the script whenever I boot into Windows... actually methinks I'll just use the script while in linux too.

Well (if you didn't get the idea from poking around with it), it's totally web based.  As long as you have a browser that supports some minimal javascript, then you can use it under any OS.

By the way, welcome to x86.  I forgot to mention that before.  If you plan on sticking around, make a post in the introduction forum if you'd like. :)
I was more so referring to the fact that I was going to download and install the LaTeX package in linux and write a program/script to do what your script does locally, and just use your script when in Windows since at a quick glance it looks like it's more of a hassle to download and install the win32 port of it.  However why reinvent the wheel for a task that's relatively low priority to me, right?

And thanks for the welcome.  I've had this account created for awhile, I just never really used it... I believe I was referred here by Ender, however before that I've seen references to it from time to time on the vL forums.  I guess I'll make an introduction thread in intro forum soon.
« Last Edit: March 28, 2007, 12:39:31 am by Michael »
I tend to edit my topics and replies frequently.

http://www.operationsmile.org

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Help?
« Reply #11 on: March 28, 2007, 12:45:04 am »
I was more so referring to the fact that I was going to download and install the LaTeX package in linux and write a program/script to do what your script does locally, and just use your script when in Windows since at a quick glance it looks like it's more of a hassle to download and install the win32 port of it.  However why reinvent the wheel, right?

Ah, I see.  Almost all Linux distributions come with Latex preinstalled.  When I've used it on Linux, I just use vim to write the tex, run latex on the file (which produced a dvi).  There's a converter (again, I'm pretty sure most distributions of Linux come with it) called dvi2ps, which converts that to a postscript document.

As you suggested, in Windows, composing latex documents is a much more painful process (or at least installing the latex processor).  I found some guide with step-by-step instructions on how to do it, but I'm not completely sure that it was the least convoluted way to achieve latex on windows.  The computers in the mathematics department at my university (which are windows machines) have some other editing environment installed (I use xemacs on windows), but I seem to recall the same port of latex appearing in the programs list as well (miktex).

In any case, a web script seems like the most useful form of this sort of thing since its rarely useful to be able to create the images if you don't want to post them on the web (if you're using latex to write a paper or something, you usually want to write the whole paper in latex, not just embed images into some other kind of document).

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Help?
« Reply #12 on: March 28, 2007, 07:18:40 am »
What the hell did I see when I posted?  Hmm...  I must be going senile.

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: Help?
« Reply #13 on: March 28, 2007, 11:40:18 am »
What the hell did I see when I posted?  Hmm...  I must be going senile.

lol.  Misreading the problem sucks. :(

Oh, and the series you were getting at converges to , according to Maple.

Offline while1

  • x86
  • Hero Member
  • *****
  • Posts: 1013
    • View Profile
Re: Help?
« Reply #14 on: March 28, 2007, 01:40:03 pm »
Yeah, that makes sense since

I tend to edit my topics and replies frequently.

http://www.operationsmile.org