Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Prove a limit

28 views
Skip to first unread message

zdu

unread,
Oct 14, 2008, 6:29:07 AM10/14/08
to
Is it true that
\lim_{n->+\infty}(\sum_{i=1}^{n}\frac{(-i)^{n-i}e^i}{(n-i)!})-2n=\frac{2}{3}

se...@btinternet.com

unread,
Oct 14, 2008, 7:23:04 AM10/14/08
to
On 14 Oct, 11:29, zdu <zhao.hui...@gmail.com> wrote:
> Is it true that
> \lim_{n->+\infty}(\sum_{i=1}^{n}\frac{(-i)^{n-i}e^i}{(n-i)!})-2n=\frac{2}{3­}

It certainly looks like it is true (though TeX is hard to decipher in
an ascii newsgroup).

Limit as n goes to +infinity of
Sum_{i=1 to n} (-i)^(n-i) * exp(i) / (n-i)! - 2n = 2/3

David C. Ullrich

unread,
Oct 14, 2008, 2:19:25 PM10/14/08
to
In article
<bb5c9397-5927-43d0...@y21g2000hsf.googlegroups.com>,
se...@btinternet.com wrote:

Why do you say so? Maybe I'm doing something totally wrong -
my numerical experiments don't seem to indicate anything like
this. (What do you get for, say, n=1, 10, or 100?)

--
David C. Ullrich

se...@btinternet.com

unread,
Oct 14, 2008, 4:01:21 PM10/14/08
to
On 14 Oct, 19:19, "David C. Ullrich" <dullr...@sprynet.com> wrote:
> In article
> <bb5c9397-5927-43d0-9c5e-ee697953c...@y21g2000hsf.googlegroups.com>,

>
>  s...@btinternet.com wrote:
> > On 14 Oct, 11:29, zdu <zhao.hui...@gmail.com> wrote:
> > > Is it true that
> > > \lim_{n->+\infty}(\sum_{i=1}^{n}\frac{(-i)^{n-i}e^i}{(n-i)!})-2n=\frac{2}{3­
> > > }
>
> > It certainly looks like it is true (though TeX is hard to decipher in
> > an ascii newsgroup).
>
> > Limit as n goes to +infinity of
> > Sum_{i=1 to n} (-i)^(n-i) * exp(i) / (n-i)!   -   2n  = 2/3
>
> Why do you say so? Maybe I'm doing something totally wrong -
> my numerical experiments don't seem to indicate anything like
> this. (What do you get for, say, n=1, 10, or 100?)
>
> --
> David C. Ullrich

Note that the -2n is outside the sum.

For n=1 you get (-1)^0 * e / 0! - 2 = e - 2 i.e. about 0.718

For n=2 you get e^2 - e - 4 about 0.671

For n=3 you get e^3 - 2*e^2 + (1/2)*e - 6 about 0.66657

For n=10 you get e^10 - 9*e^9 + 32*e^8 - (343/6)*e^7 + 54*e^6 -
(625/24)*e^5 + (256/45)*e^4 - (243/560)*e^3 + (2/315)*e^2 -
(1/362880)*e - 20 about 0.66666666649

For larger numbers the sum simply gets longer and more prone to
precision problems in calculation

zdu

unread,
Oct 14, 2008, 9:23:24 PM10/14/08
to
Yes. I have checked the value of the first 10 items and it seems the result should be true.
I encounter the problem while I am trying to solve a probability problem. You could find the problem at http://zdu.spaces.live.com/blog/cns!C95152CB25EF2037!133.entry . Maybe we could solve the problem via the probability model.

David C. Ullrich

unread,
Oct 15, 2008, 10:07:27 AM10/15/08
to
On Tue, 14 Oct 2008 13:01:21 -0700 (PDT), se...@btinternet.com wrote:

>On 14 Oct, 19:19, "David C. Ullrich" <dullr...@sprynet.com> wrote:
>> In article
>> <bb5c9397-5927-43d0-9c5e-ee697953c...@y21g2000hsf.googlegroups.com>,
>>
>>  s...@btinternet.com wrote:
>> > On 14 Oct, 11:29, zdu <zhao.hui...@gmail.com> wrote:
>> > > Is it true that
>> > > \lim_{n->+\infty}(\sum_{i=1}^{n}\frac{(-i)^{n-i}e^i}{(n-i)!})-2n=\frac{2}{3­
>> > > }
>>
>> > It certainly looks like it is true (though TeX is hard to decipher in
>> > an ascii newsgroup).
>>
>> > Limit as n goes to +infinity of
>> > Sum_{i=1 to n} (-i)^(n-i) * exp(i) / (n-i)!   -   2n  = 2/3
>>
>> Why do you say so? Maybe I'm doing something totally wrong -
>> my numerical experiments don't seem to indicate anything like
>> this. (What do you get for, say, n=1, 10, or 100?)
>>
>> --
>> David C. Ullrich
>
>Note that the -2n is outside the sum.

I was summing from 1 to n-1 (never mind how that happened).
Yes, it does appear to be right.

>For n=1 you get (-1)^0 * e / 0! - 2 = e - 2 i.e. about 0.718
>
>For n=2 you get e^2 - e - 4 about 0.671
>
>For n=3 you get e^3 - 2*e^2 + (1/2)*e - 6 about 0.66657
>
>For n=10 you get e^10 - 9*e^9 + 32*e^8 - (343/6)*e^7 + 54*e^6 -
>(625/24)*e^5 + (256/45)*e^4 - (243/560)*e^3 + (2/315)*e^2 -
>(1/362880)*e - 20 about 0.66666666649
>
>For larger numbers the sum simply gets longer and more prone to
>precision problems in calculation

David C. Ullrich

"Understanding Godel isn't about following his formal proof.
That would make a mockery of everything Godel was up to."
(John Jones, "My talk about Godel to the post-grads."
in sci.logic.)

se...@btinternet.com

unread,
Oct 15, 2008, 10:05:11 PM10/15/08
to

Fruitlessly exploring this, I came across some pretty identities which
I had not seen before. One is

Sum_{i=0 to k} (-1)^i * (n-i)^k * C(k,i) = k!

where n does not affect the result and does not need to be positive or
even an integer.

So for example
1*4^0 = 1 = 0!
1*4^1 - 1*3^1 = 1 = 1!
1*4^2 - 2*3^2 + 1*2^2 = 2 = 2!
1*4^3 - 3*3^3 + 3*2^3 - 1*1^3 = 6 = 3!
1*4^4 - 4*3^4 + 6*2^4 - 4*1^4 + 1*0^4 = 24 = 4!
and even
1*4^5 - 5*3^5 + 10*2^5 - 10*1^5 + 5*0^5 - 1*(-1)^5 = 120 = 5! etc.

This might explain n+1 of the 2n+2/3 in the original conjecture by
expanding the exponentials.

Some other pretty identities are:

Sum_{i=0 to n} (-1)^(n-i) * i^(n-k) * C(n,i) = 0 [for n >= k > 0]

Sum_{i=0 to n} (-1)^(n-i) * i^n * C(n,i) = n!

Sum_{i=0 to n} (-1)^(n-i) * i^(n+k) * C(n,i) = n! * S2(n+k,n)
where S2 represents Stirling numbers of the second kind

so for example
1*4^0 - 4*3^0 + 6*2^0 - 4*1^0 + 1*0^0 = 0 taking 0^0=1
1*4^1 - 4*3^1 + 6*2^1 - 4*1^1 + 1*0^1 = 0
1*4^2 - 4*3^2 + 6*2^2 - 4*1^2 + 1*0^2 = 0
1*4^3 - 4*3^3 + 6*2^3 - 4*1^3 + 1*0^3 = 0
1*4^4 - 4*3^4 + 6*2^4 - 4*1^4 + 1*0^4 = 24 = 4!
1*4^5 - 4*3^5 + 6*2^5 - 4*1^5 + 1*0^5 = 240 = 4! * 10
1*4^6 - 4*3^6 + 6*2^6 - 4*1^6 + 1*0^6 = 1560 = 4! * 65

Sadly these later identities do not look as if they will help much
with the original conjecture. The last is stated in Abramowitz and
Stegun, Handbook of Mathematical Functions, Section 24.1.4.I.C

se...@btinternet.com

unread,
Oct 19, 2008, 7:18:14 AM10/19/08
to
On 15 Oct, 02:23, zdu <zhao.hui...@gmail.com> wrote:
> Yes. I have checked the value of the first 10 items and it seems the result should be true.
> I encounter the problem while I am trying to solve a probability problem. You could find the problem athttp://zdu.spaces.live.com/blog/cns!C95152CB25EF2037!133.entry. Maybe we could solve the problem via the probability model.

----
Here is a possible probabilistic solution:

Consider the total distance n+E when the total first hits or exceeds
n, with a final step F. So both the excess distance E and the final
step F are in [0,1] with F>E. F will tend to be big because it is
conditioned on passing n, while E will tend to be small since it is
conditioned on n having been passed.

For large n, the probability density of F is close to 2x while the
density of E is close to 2-2x. See
http://domino.research.ibm.com/Comm/wwwr_ponder.nsf/challenges/June2007.html
for more details.
This makes the expected value of E be 1/3 and so the expected total
distance is about n+1/3. Since for large n the average distance per
step is close to 1/2, the expected number of steps is about 2n+2/3.

zhao....@gmail.com

unread,
Oct 19, 2008, 8:01:52 PM10/19/08
to
On 19 Oct, 19:18, s...@btinternet.com wrote:
> On 15 Oct, 02:23, zdu <zhao.hui...@gmail.com> wrote:
>
> > Yes. I have checked the value of the first 10 items and it seems the result should be true.
> > I encounter the problem while I am trying to solve a probability problem. You could find the problem athttp://zdu.spaces.live.com/blog/cns!C95152CB25EF2037!133.entry. Maybe we could solve the problem via the probability model.
>
> ----
> Here is a possible probabilistic solution:
>
> Consider the total distance n+E when the total first hits or exceeds
> n, with a final step F. So both the excess distance E and the final
> step F are in [0,1] with F>E.   F will tend to be big because it is
> conditioned on passing n, while E will tend to be small since it is
> conditioned on n having been passed.
>
> For large n, the probability density of F is close to 2x while the
> density of E is close to 2-2x.  Seehttp://domino.research.ibm.com/Comm/wwwr_ponder.nsf/challenges/June20...

> for more details.
> This makes the expected value of E be 1/3 and so the expected total
> distance is about n+1/3.  Since for large n the average distance per
> step is close to 1/2, the expected number of steps is about 2n+2/3.

The idea sounds great.
In the solution of the problem, it says:
Values between 0 and 1 are equally likely but larger values are more
likely to cause the sum to exceed n+x. So as n --> infinity the
differential probability that xk=t is 2*t*dt.
It is difficult to understand why the differenetial probability is
2*t. Do you know why the result is 2*t?

zhao....@gmail.com

unread,
Oct 19, 2008, 8:09:06 PM10/19/08
to
On Oct 19, 7:18 pm, s...@btinternet.com wrote:
> On 15 Oct, 02:23, zdu <zhao.hui...@gmail.com> wrote:
>
> > Yes. I have checked the value of the first 10 items and it seems the result should be true.
> > I encounter the problem while I am trying to solve a probability problem. You could find the problem athttp://zdu.spaces.live.com/blog/cns!C95152CB25EF2037!133.entry. Maybe we could solve the problem via the probability model.
>
> ----
> Here is a possible probabilistic solution:
>
> Consider the total distance n+E when the total first hits or exceeds
> n, with a final step F. So both the excess distance E and the final
> step F are in [0,1] with F>E.   F will tend to be big because it is
> conditioned on passing n, while E will tend to be small since it is
> conditioned on n having been passed.
>
> For large n, the probability density of F is close to 2x while the
> density of E is close to 2-2x.  Seehttp://domino.research.ibm.com/Comm/wwwr_ponder.nsf/challenges/June20...

> for more details.
> This makes the expected value of E be 1/3 and so the expected total
> distance is about n+1/3.  Since for large n the average distance per
> step is close to 1/2, the expected number of steps is about 2n+2/3.

And given the expected value of E is 1/3 and the expected distance of
each step is 1/2, could we result in that the expected number of step
is 2n+2/3 when n is large enough?

se...@btinternet.com

unread,
Oct 20, 2008, 6:27:39 AM10/20/08
to
> 2*t.  Do you know why the result is 2*t?- Hide quoted text -
>
> - Show quoted text -

The argument goes something like:

The joint distribution of the final step F and the excess E tends
toward being flat for large n subject to the constraint
0 <= E < F <= 1.
We have int_{x=0 to 1} int_{y=0 to x} dy dx = 1/2 so the joint
probability density must be close to 2 for large n.
So Prob(F<=t) = int_{x=0 to t} int_{y=0 to x} 2 dy dx = t^2
and the marginal probability density for F is (close to) 2t
while Prob(E<=t) = int_{y=0 to t} int_{x=y to 1} 2 dx dy = 2t - t^2
and the marginal probability density for E is (close to) 2 - 2t

zhao....@gmail.com

unread,
Oct 20, 2008, 10:49:56 PM10/20/08
to
The problem is whether we could assume that the final step F and the
excess E tends toward being flat for large n.
Let's assuming that the marginal probability density for E is 2-2t
when n is large enough.
Now let's consider the distribution of E after then distance n+1 is
covered.
Assuming the probability density of E(n) is f(t)=2-2t when n is large
enough, we should be able to get that of E(n+1) is 2-2t too.
Given E(n) is t, we could calculate the condition probability that E(n
+1) is no nore than s.
We could get F(s|t)=P(E(n+1)<s|E(n)=t) is
s*exp(1-t) when s<t
exp(1-t)*s+{1-exp(1-t)}*(1-exp(s-t)+(s-t)*exp(1-t))/{1-exp(1-t)+(1-
t)*exp(1-t)} when s>t
So the correspondent density f(s|t) is
exp(1-t) when s<t
((1-exp(1-t))*(exp(1-t)-exp^(s-t)))/((1-t)*exp(1-t)-exp(1-t)+1)+exp(1-
t) when s>t
so the density of E(n+1) should be the integrate of f(s|t)*f(t) for
all t
and f(s)=integrate{f(s|t)*f(t), 0<=t<=1}.
But it seems the equivalent does not hold for f(t)=2*(1-t)
So I don't think the density of E is 2*(1-t)

se...@btinternet.com

unread,
Oct 21, 2008, 9:40:17 AM10/21/08
to
On 21 Oct, 03:49, zhao.hui...@gmail.com wrote:
> The problem is whether we could assume that the final step F and the
> excess E tends toward being flat for large n.
> Let's assuming that the marginal probability density for E is 2-2t
> when n is large enough.
> Now let's consider the distribution of E after then distance n+1 is
> covered.
> Assuming the probability density of E(n) is f(t)=2-2t when n is large
> enough, we should be able to get that of E(n+1) is 2-2t too.
> Given E(n) is t, we could calculate the condition probability that E(n
> +1) is no nore than s.
> We could get F(s|t)=P(E(n+1)<s|E(n)=t) is
> s*exp(1-t) when s<t
> exp(1-t)*s+{1-exp(1-t)}*(1-exp(s-t)+(s-t)*exp(1-t))/{1-exp(1-t)+(1-
> t)*exp(1-t)} when s>t
> So the correspondent density f(s|t) is
> exp(1-t) when s<t
> ((1-exp(1-t))*(exp(1-t)-exp^(s-t)))/((1-t)*exp(1-t)-exp(1-t)+1)+exp(1-
> t) when s>t
> so the density of E(n+1) should be the integrate of f(s|t)*f(t) for
> all t
> and f(s)=integrate{f(s|t)*f(t), 0<=t<=1}.
> But it seems the equivalent does not hold for f(t)=2*(1-t)
> So I don't think the density of E is 2*(1-t)

This is how I would do the check:

With y and z in [0,1),
let g(y,z) = Prob(first point at or above n+1 is at or below n+1+z |
given that point n+y is visited)

Note that n+y does not have to be either the first or the last point
visited in the interval [n,n+1).

I think you have
if y>=z then g(y,z) = z + int_{x=y to 1} g(x,z) dx
if y<=z then g(y,z) = y + int_{x=y to 1} g(x,z) dx

which has solution
if y>=z then g(y,z) = z*exp(1-y)
if y<=z then g(y,z) = 1 + (z*exp(1)-exp(z))*exp(-y)

Now to check 2*(1-t):
So want to look at probability first point at or above n+1 is at or
below n+1+z using prior 2*(1-t) for first point at or above n

i.e. int_{t=0 to 1} [2*(1-t) g(t,z)] dt

which is int_{t=0 to z} [2*(1-t) +2*(1-t)*(z*exp(1)-exp(z))*exp(-t))]
dt + int_{t=z to 1} [2*(1-t)*z*exp(1-t)] dt
which is 2*z - z^2
and the derivative of that is 2*(1-z), as I would have hoped for.

se...@btinternet.com

unread,
Oct 21, 2008, 8:53:30 PM10/21/08
to
On 20 Oct, 01:09, zhao.hui...@gmail.com wrote:
> And given the expected value of E is 1/3 and the expected distance of
> each step is 1/2, could we result in that the expected number of step
> is 2n+2/3 when n is large enough?- Hide quoted text -

>
> - Show quoted text -


That is a good question. I made what I thought was an attractive
argument, but I can also cast doubt on it.

For example, the expected position immediately before reaching n tends
towards n-1/3 for large n but the expected number of steps to reach it
is not close to 2n-2/3, instead being close to 2n-1/3.

I would distinguish the position immediately after reaching n from the
position immediately before reaching n. Reaching n is a "stopping
rule" since we know at that point that we have reached n, while for
any point before n there is always the possibility of a small step
which does not reach n. Since we have a stopping rule, I believe we
can use the optional stopping property of martingales, and so with
independent steps of expected length 1/2, the expected total distance
is half the expected number of steps under any stopping rule.

Take as an example this particular problem for n=1:

What is the expected number of steps until the total distance traveled
exceeds 1?
Answer: exp(1),
as the expected number of steps from the point x<1 is exp(1-x) and
initially x=0.

What is the expected total distance when the total distance traveled
first exceeds 1?
Answer: exp(1)/2,
since my earlier analysis gave
g(0,z) = 1 + z*exp(1) - exp(z)
which has a derivative exp(1) - exp(z) and so the answer
is 1 + int_{z=0 to 1} z*(exp(1)-exp(z)) dz

Or as another stopping rule example:

What is the expected total number of steps until (and including) when
a step length first exceeds 2/3?
Answer: 3
= 1*(1/3) + 2*(2/9) + 3*(4/27) + ...

What is the expected total distance when a step length first exceeds
2/3?
Answer: 3/2
= (5/6)*(1/3) + (7/6)*(2/9) + (9/6)*(4/27) + ...

zhao....@gmail.com

unread,
Oct 21, 2008, 9:44:49 PM10/21/08
to
Yes. An attractive result.

zhao....@gmail.com

unread,
Oct 22, 2008, 4:18:08 AM10/22/08
to
In http://www.mitbbs.cn/article_t/Mathematics/31162283.html, someone
guesses that
if we use a random distribution "good enough" to replace the uniform
distribution in the model,
the expected steps to cover distance s should be
s/E1+E2/(2E1^2)+o(1) (when s->infinity)
where E1 and E2 are the 1st and 2nd moments.
0 new messages