Recursive Sums


By Adam Ring on Wednesday, September 26, 2001 - 05:34 pm:
I seem to have found a problem that is similar to i=1 n nr 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 i=1 n1 we find that the solution is equal to n. We can then do a recursive sum, j=1 n i=1 j1. This will then reduce to j=1 nn which then reduces to n(n+1)/2. Adding a third sum will amount to

k=1 nk(k+1)/2=1/2 k=1 n k2 +1/2 k=1 nk=1/2[n(n+1)(2n+1)/6+n(n+1)/2]=n(n+1)(n+2)/6

The equation can be specified as j=1 n i=1 j ir-2 where r is an arbitrary number of summations with the first being i=1 n1. 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:

ik =1 n ik-1 =1 ik i1 =1 i2 1

as ik =1 n ik-1 =1 n i1 =1 nI( 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:

ik =1 n ik-1 =1 ik i1 =1 i2 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 Sr = i=1 n ir . From there, I was able to iterate through the various recursive sums with S Rk+1 equal to ik+1 =1 nS Rk , 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= ik =1 n ik-1 =1 ik i1 =1 i2 1

where n, k are fixed natural numbers.

We can write this as:

S= jk =k+1 n+k jk-1 =k jk -1 j1 =2 j2 -11

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 1r<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=1 Nn(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:

n=1 NS(n,k)=S(N,k+1)

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 r=1 n rs . 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 k=1 n[(k+1 )r - kr ]. 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
k=1 n[C(r,1) kr-1 ++C(r,r-1)k+1]=C(r,1) Sr-1 ++C(r,r-1) S1 + S0

where Sj = k=1 n kj , 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.