Is it possible to evaluate:
|
n å r=1 | rk |
|
n å r=1 | rk = a0 + a1 n + a2 n2 + ¼+ ak+1 nk+1 |
|
n å r=1 | r(r+1)¼(r+k-1)=1/(k+1)[n(n+1)¼(n+k)] |
|
n å r=1 | r |
|
n å r=1 | r2 |
|
n å r=1 | r |
|
n å r=1 | r=(1/2)×n(n+1) |
Dear Chris,
Thank you for your reply.
I used a similar method to you. I wrote out the polynomial with
its coefficients in the same way as you, but then put in
individual values of n, solved the resulting simultaneous
equations to get the answer. I then proved this for all n by
induction.
However, I still have not found a complete pattern. (The patterns
I found are summarized in my previous message -for example the
coefficient of n^k in the answer is always 1/2). Using your
equations (in a slightly different form to simplify the
calculations), however, we can get:
a1 n + a2 n2 + ...+
ak+1 nk+1 = nk + a1
(n-1) + a2 (n-1)2 + ...+ ak+1
(n-1)k+1
and:
a1 (n-[n-1]) + a2 (n2
-[n-1]2 ) + ... + ak+1 (nk+1 -
(n-1)k+1 ) = nk
(ai is the coefficient of ni in the
expression which is the sum of rk where r varies from
1 to n)
Using the binomial expansion we can show:
a1 - a2 + a3 + ... -
(-1)k+1 ak+1 = 0 (equating constant
terms)
2a2 - 3a3 + ... + (k+1)(-1)k+1
ak+1 = 0 (equating 1st degree terms)
etc.
In general by equating nr coefficients we get
|
k+1 å i=r+1 | i Cr ai(-1)i=0 |
|
k+1 å i=k | i Ck-1 ai (-1)i = 0 |
|
k+1 å i=r+1 | (-1)i C(k-i)/(i-r)!=0 |
Hello there...
Just some quick stuff about the numbers you've found called C(n).
The following sequence is a very well known one:
1 , -1/2 , 1/6 , 0 , -1/30 , 0 , -1/42 ...
They are called the Bernoulli numbers . You'll see that
your C(n) are these divided by n!. I don't know much about their
properties but they are pretty irregular. One way to find them is
to find the Taylor series of x / (ex - 1). Try it and
you'll see.
AlexB.
Dear Chris and AlexB,
Thank you for your replies. After looking at your list of
Bernoulli numbers I think the connection between these and C(x)
is:
B(x) = (-1)x C(x-1) x!
Where B(x) are the Bernoulli numbers. I've assumed that by
convention the zeroth Bernoulli number is 1, i.e. that the series
B(x) starts at x=0.
(By the way, there is an error in my original message. I wrote
C(-1) = -1 when in fact C(-1) = 1.)
Now the formula ai = k! / i! C(k - i) predicts the
coefficient of ni in the sum of rk (where r
varies from 1 to n.) By replacing C(k -i) with a Bernoulli number
we can get:
ai = (-1)k - i + 1 B(k - i + 1) k! / [i! (k
- i + 1)!]
So at least now we can predict any coefficient in the sum of
rk in terms of Bernoulli numbers, which you say are
relatively well known.
To check:
let i = k + 1
ak+1 = (-1)0 B(0) k!/[(k+1)!0!] =
1/(k+1)
as we knew. (In the sum of rk the leading coefficient
i.e. that of nk+1 is 1/(k+1).)
We can also derive a recurrence relationship for the Bernoulli
numbers. In my second message I gave:
|
k+1 å i=r+1 | (-1)i C(k-i)/(i-r)!=0 |
|
k+1 å i=r+1 | B(k-i+1)/[(i-r)!(k-i+1)!]=0 |
|
a=b-1 å a=0 | B(a)/[(b-a)! a!]=0 |
Okay; here is how to work out the Taylor
series... By the way there was a slight error in my definition of
the Bernoulli numbers, they should be the coefficient of
xn /n! in the Taylor expansion not the coefficient of
xn . But that doesn't really matter.
The Taylor series of ex - 1 is:
x + x2 /2 + x3 /3! + ... [Hopefully you'll
know this - otherwise look it up/work it out/believe me]
So x / (ex - 1) is:
1 / (1 + x/2! + x2 /3! + ... ) [Okay??]
Now the Taylor series of 1/(1+y) is:
1 - y + y2 - y3 + y4 ... [Again
look it up if you don't know]
Finally use this series with y = x/2! + x2 /3! ... to
get the Bernoulli numbers.
I hope that made sense... Let me know if you don't follow any of
this.
AlexB
Thanks, that was very helpful. I did think of doing it exactly
that way but for some reason was worried that 1 -y +
y2 -y3 + ...could not be expanded when y =
x/2! + x2 /3! + ...In fact it works out fine. (Of
course it would have been impossible to collect the terms if y
had been 1 + x/2! + x2 /3! + ...but this is not
the case.)
I think I have also found a way to prove that the
coefficients of xn /n! in the expansion of
x/(ex - 1) are the Bernoulli numbers.
I will define Bernoulli numbers by the recurrence relationship I
pointed out in my last message:
|
a=b-1 å a=0 | B(a)/[(b-a)! a!]=0 |
| x= |
¥ å r=0 | xr a(r)/r! |
¥ å r=1 | xr/r! |
|
n-1 å r=0 | a(r)/[(n-r)! r!]=0 |
I have a one line proof that B(2x+1)=0... but I won't spoil your
fun by posting it yet. Let me know when you've worked out a proof
of your own or given up and I'll post it then.
AlexB.
Well, I've certainly thought up a proof but it is not one line
I'm afraid.
We know
x/(ex -1) = B(0) + B(1)x + B(2)x2 /2! +
B(3)x3 /3! + ...
will converge for x< 1.57 and x =/= 0. So for any x in the
range -1.57 x < 1.57 (excluding x=0) the above formula will
work for x and -x. Therefore:
x/(ex -1) = B(0) + B(1)x + B(2)x2 /2! +
B(3)x3 /3! + ...
-x/(e-x -1) = B(0) - B(1)x + B(2)x2 /2! -
B(3)x3 /3! + ...
for the above domain. Subtract the 2nd equation from the
first:
-x = 2B(1)x + 2B(3)x3 /3! + 2B(5)x5 /5! +
...
(The left hand side simplifies to -x as ex -1 =/= 0 as
x =/= 0.)
Now B(1)=-1/2 so the equation becomes:
0 = B(3)x3 /3! + B(5)x5 /5! +
B(7)x7 /7! + ...
for -1.57 x < 1.57, x =/= 0. Cancelling the x3
:
0 = B(3)/3! + B(5)x2 /5! + B(7)x4 /7! +
...
Now by successively differentiating both sides and letting x get
very close to 0 it is possible to show B(3)=B(5)=B(7)=...=0
(All the terms with xr in them disappear as the terms
decrease faster than a geometric progression, at any -1 x < 1.
This is because the Bernoulli numbers always decrease in
magnitude as my recurrence relationship earlier showed, and the
factorials on the denominator get larger.)
Am I on the right track?
Michael
In my last message, the Taylor expansion should converge for x
=/= 0 and (approximately) x< 1.26 not x< 1.57. The
important thing is that in both cases x< 1 is not
excluded.
Sorry about that!
Michael
It looks okay. The quick proof is as
follows. Differentiate x/(ex -1) twice and the result
you get is an even function [ie. f(-x)=f(x)]. If you know that
the power series of an even function has only even powers of x
then you've finished.
AlexB.
Actually they are really quite similar methods. I felt sure
that it would be necessary to use the Taylor expansion, rather
than proving B(2x + 1)=0 by induction with the recurrence
relationship I found earlier; this does not appear to be
possible.
The consequence for the sum of powers of integers is that while
the coefficient of the 2nd highest power in the answer is 1/2,
the coefficients of the 4th, 6th, 8th ... etc highest powers are
all zero, which is an interesting result in itself. It is the
coeffcients of the 3th, 5th, 7th ...etc highest coefficients
whose prediction requires use of the Bernoulli sequence, (or a
separate calculation).
Thanking you for your help,
Michael
The following posts were originally posted in a separate thread, in response to the above discussion.
When I get time over the next few days
I'll put up several messages about how to work out the sums
like:
1r + 2r + 3r + ... +
nr
Most of the stuff that I'll do is fairly complex and if you don't
understand but would like to then add a message whit the bits you
want in more detail.
Okay, set f(x) = 1 + ex + e2x +
e3x + ... + enx .
What happens if we differentiate this?? Well we get:
f'(x) = ex + 2e2x + 3e3x +
etc...
f''(x) = ex + 22 e2x +
32 e3x + etc...
f'''(x) = ex + 23 e2x +
33 e3x + etc...
Now if we put x=0 in these we get:
1 + 2 + 3 + ... + n in the first case
12 + 22 + 32 + ... +
n2 in the second case
13 + 23 + 33 + ... +
n3 in the third case
So now it should be clearer why I picked f(x) to be what it was.
Somehow its derivatives are the sums we are looking for. In fact
if we differentiate f(x) r times and then put x=0 we get the sum
of the first n r'th powers.
Now if you know how to sum up geometric series then you should
see that:
f(x) = (e(n+1)x - 1) / (ex - 1)
So:
f(x) = [e(n+1)x / (ex - 1)] -
[e0x / (ex - 1)]
So it looks like we should think about the function:
G(x) = emx / (ex - 1)
in order to better understand f(x). However for reasons I'll
explain later I'll actually look at the function:
g(x) = x / (ex - 1)
The function g(x) has a Taylor expansion which goes like:
g(x) = b(0) + b(1)x + b(2)x2 /2! + b(3)x3
/3! + ...
And the numbers b(i) are called the Bernoulli numbers
.
To be continued...
Ignoring the factor of x in the
definition of g(x) for now we see that we want to calculate the
derivatives of g(x) x emx . We can do this by using
something which looks like the binomial theorem...
What do the derivatives of f(x) x g(x) look like?
[0th] f*g
[1st] f'*g + f*g'
[2nd] f''*g + 2f'*g' + f*g''
[3rd] f'''*g + 3f''*g' + 3f'*g'' + f*g'''
So when we differentiate g(x) x emx r times we get
terms like:
(r choose k) x [k'th deriv of g] x [mr-k
emx ]
Now the k'th derivative of g at x=0 is b(k), so these terms are
like:
(r choose k) x b(k) x mr-k .
When m=0 the only term that is left is b(r).
So the r'th derivative at x=0 of x(emx -1) /
(ex - 1) is:
Sum[(r choose k) x b(k) x mr-k ,k=0...r] - b(r)
So finally we have to work out how to calculate the derivatives
of (emx -1)/(ex - 1) from the ones we have
just calculated. Well we use the binomial like theorem to write
down what the r'th derivative of x x(emx
-1)/(ex - 1) is. When x=0 only one term is left:
r x [(r-1)'st derivative of (emx -1)/(ex -
1)]
Hence the r'th derivative we want is:
(1/(r+1)) x(Sum[((r+1) choose k) x b(k) x mr+1-k
,k=0...(r+1)] - b(r+1))
And this is therefore a formula for the sum of the first (m-1)
r'th powers of the integers.
Sorry this is so complicated, but there isn't a particularly easy
way to do it. The messages here are mainly to explain a different
way of doing things.
AlexB