Recursive Sums
By Adam Ring on Wednesday, September 26,
2001 - 05:34 pm:
I seem to have found a problem that is similar to
where r
is an arbitrary value. I have found the very helpful threads about this topic
along with the discussion that one can find the coefficients using Bernoulli
numbers. My problem, however, involves an arbitrary number of recursions.
For example, if we start with
we find that the solution is
equal to n. We can then do a recursive sum,
.
This will then reduce to
which then reduces to n(n+1)/2.
Adding a third sum will amount to
|
n å
k=1
|
k(k+1)/2=1/2 |
n å
k=1
|
k2+1/2 |
n å
k=1
|
k=1/2[n(n+1)(2n+1)/6 +n(n+1)/2]=n(n+1)(n+2)/6
|
The equation can be specified as
where r
is an arbitrary number of summations with the first being
. As
it turns out, r is also the order of the algebraic answer as well.
Right now I know two ways that this can be solved with a given
r. The first is to build up the equations like I showed above for
the case r=3.
The second way would seem to involve plugging r into the equation
above and use whatever method one could use to find a formula for
a sum. Depending on r, this seems the more difficult of the
two.
Anyway, is there a method for solving this problem that is
similar (or dissimilar) to the arbitrary power of sums problem
that has already been discussed? I'm assuming that the solution
would have a similar form with the coefficients being determined
by a sequence similar to the Bernoulli sequence. Thanks for the
help.
By David Loeffler on Thursday, September
27, 2001 - 10:33 pm:
Have you tried writing out Pascal's triangle? You may find it
illuminating. I'll not give you any clearer hints yet - see what
you find. If you get stuck write back.
David
By Michael Doré on Friday, September 28, 2001 - 05:49 pm:
Alternatively, you can write:
|
n å
ik=1
|
|
ik å
ik-1=1
|
¼ |
i2 å
i1=1
|
1
|
as
|
n å
ik=1
|
|
n å
ik-1=1
|
|
n å
i1=1
|
I(i1 £ i2 £ ¼ £ ik)
|
where I is the indicator function. (In other words I(X)=1 if X is true
and I(X)=0 if X is false.)
Therefore the k-fold sum is equal to the number of ordered k-tuples
(i1,¼,ik) where each ir is an integer in [1,n], and i1 £ ¼ £ ik.
Letting jr=ir+r it is clear that the answer is the number of ordered
k-tuples of integers (j1,¼,jk) such that jr is in [1+r,n+r] and
j1 < j2 < ¼ < jk. A bit of thought shows this is the number of
unordered k-tuples of distinct integers in [2,n+k] (can you see a bijection
between the two sets?) This of course is equal to the binomial coefficient
C(n+k-1,k). Therefore:
|
n å
ik=1
|
|
ik å
ik-1=1
|
¼ |
i2 å
i1=1
|
1=n(n+1)¼ (n+k-1)/k!
|
Alternatively you can get this answer in one line by induction on k.
By Adam Ring on Friday, September 28, 2001
- 11:39 pm:
I must apologize for being obtuse, but I didn't understand
that proof at all. I did try to use:
nk+C(n,1)n(k-1)+C(n,2)n(k-2)+¼+C(n,n-1)n=C(n,1)S(k-1)+ C(n,2)S(k-2)+¼+C(n,n-1)S1+n
where C(k,i) is the binomial coefficient and
. From
there, I was able to iterate through the various recursive sums with
S Rk+1 equal to
, which could be written in terms
of the various Sr sums. (Clarification, Sr is the sum of ir while
S Rk is the recursive sum carried out k times of 1). This obviously got
me nowhere since I had to keep track of both the ir sums and the recursive
sums. I believe this method could be described as an exercise in futility.
The basic thing is that I don't understand how to start the
proof. I didn't understand what Michael was saying about the
indicator function. My mind immediately jumped to boolean logic
with the zeros and ones, and from there it wouldn't let go.
Thanks for the help.
By Michael Doré on Saturday, September 29, 2001 - 02:15 pm:
Yes, it was a bit rushed. Here is another way of
writing out the proof. We want to evaluate:
| S= |
n å
ik=1
|
|
ik å
ik-1=1
|
¼ |
i2 å
i1=1
|
1
|
where n, k are fixed natural numbers.
We can write this as:
| S= |
n+k å
jk=k+1
|
|
jk-1 å
jk-1=k
|
¼ |
j2-1 å
j1=2
|
1
|
where jr=ir+r
Let A be the set of all ordered k-tuples (j1,¼,jk) of integers
such that jk is in [k+1,n+k], jk-1 is in [k,jk-1], jk-2 is in
[k-1,jk-1-1], ..., j1 is in [2,j2-1]. In other words jr is
in [r+1,jr+1-1] if 1 £ r < k.
Let B be the set of all subsets R of {2,¼,n+k} such that |R|=k.
For instance one element of B would be {2,3,4,5,¼,k,k+1}. Note that
this is not different from {3,2,4,5,¼,k,k+1} - they are the same subset.
We claim that S=|A|. (|A| means the number of elements in A.) It is
easy to see why this is true. The k-iterated sum S counts ''one'' for
every (j1,¼,jk) such that 2 £ j1 £ j2+1, 3 £ j2 £ j3+1,
..., k £ jk-1 £ jk+1 and k+1 £ jk £ n+k. So S counts
one for every element of A, in other words S=|A|.
We now claim that |A|=|B|. We do this by giving a bijection from A to B.
The bijection is a very simple one: we take an ordered k-tuple (j1,¼, jk) in A and map it to the subset {j1,¼,jk}. Note that this
subset is in B. It has k distinct elements (since jr is strictly
increasing) and it is clear that each element is in [2,n+k]. To show it
is a bijection we must show it is:
(i) injective
(ii) surjective
(i) is clear. If two ordered k-tuples in A map to the sameelement of B
then they must be the same k-tuple (since all k-tuples(j1,¼,jk)
in A have j1 < ¼ < jk).
(ii) We have to show that for every subset R of[2,n+k] of size k, we can
find an ordered k-tuple (j1,¼,jk) in A such that R={j1,¼,jk}.
Well define j1 to be the smallest element of R, j2 to be the second
smallest element of R, ... and jk to be the largest element in R.
Then since 2 £ j1 < j2 < ¼ < jk-1 < jk £ n+k and jr are
integers so r+1 £ jr. It is clear that jr £ jr+1-1 if r < k-1
and it is also obvious that jk £ n+r. Hence (j1,¼,jk) is indeed
in A and the bijection isestablished.
Therefore S=|A|=|B|. But B is the set of k-sized subsets of {2,¼, n+k} so by definition of the binomial coefficient, |B|=C(n+k-1,k). So
S=n(n+1)¼(n+k-1)/k!
Alternatively, you can prove the result much quicker by noting that:
n(n+1)¼(n+k-1)/k!=n(n+1)¼(n+k)/(k+1)!-(n-1)n¼(n+k-1)/(k+1)!
Summing this from n=1to n=N gives:
|
N å
n=1
|
n(n+1)¼(n+k-1)/k!=N(N+1)¼(N+k)/(k+1)!
|
So if S(n,k)=n(n+1)¼(n+k-1)/k! then:
It is now easy to iterate this, to get the answer. This is practically the
same as David's method.
As for your method I'm a bit confused about where your first equation comes
from. It is going to be hard to get the required result by expanding and
using the result for
. One interesting thingthat could
come out of your approach though might besome interesting identities
concerning theBernoulli numbers. I'll have another look later.
By Adam Ring on Monday, October 01, 2001 -
04:33 pm:
I thank you for the explination. It is now much clearer. One
of the problems that I faced was that my focus is in engineering,
not math. The proof makes sense now, but I did need some time to
wrap my brain around the problem.
The answer to where I got the first equation in my previous post was from
.
This can be expanded two ways. The first is a telescoping series
that reduces to
(n+1)r - 1 = nr + C(r,1)nr-1 +
... + C(r,r-1)n
and the second expansion is
|
n å
k=1
|
[C(r,1)kr-1+¼+C(r,r-1)k+1]=C(r,1)Sr-1+¼+C(r,r-1)S1 + S0
|
where
, which of course means S0=n, S1=n(n+1)/2,
S2¼
Set the two lines equal to each other, and it should be what I
typed previously.
There may be some link between the Bernoulli numbers and the
binomial coefficients, but exactly what that is, I haven't got a
clue.
Thanks for all your help.