0

I have function f(n) like:

 N=1   result = 2
 N=2   result = 8
 N=3   result = 20
 N=4   result = 40
 N=5   result = 70
 N=6   result = 112
 N=7   result = 168
 N=8   result = 240
 N=9   result = 330
 N=10  result = 440

I could understand that its something like:

N = 1,   (1 + 1) = 2

N = 2,   (1 + 1) + (3 + 3) = 8

N = 3,   (1 + 1) + (3 + 3) + (4 + 4 + 4)= 20

N = 4,   (1 + 1) + (3 + 3) + (4 + 4 + 4) + (5 + 5 + 5 + 5)  =  40

N = 5,   (1 + 1) + (3 + 3) + (4 + 4 + 4) + (5 + 5 + 5 + 5) + (6 + 6 + 6 + 6 + 6) = 70

N = 6,   (1 + 1) + (3 + 3) + (4 + 4 + 4) + (5 + 5 + 5 + 5) + (6 + 6 + 6 + 6 + 6) + (7 + 7 + 7 + 7 + 7 + 7)= 112

Finally, I could understood that sum of N in three loop is:

[Question]

(1*2) + (3*2) + (4*3) + (5*4) + (6*5) + ... + (N * (N-1))

Now, I wants to simplify this equation in terms of N?

A similar kind of question I have asked previously Here also, If I compare results of both series it looks the result in term of N is = ( ((N) * (N+1) * (N+2)) / 3 ). but I am not sure.

Can someone help me to simplify this question further.

Edit: After Mr.Mark Bennet's comment I recheck my equation it should be actually following (notice the small change):

(1*2) + (2*3) + (3*4) + (4*5) + (5*6) + ... + (N * (N+1))

2 Answers2

3

By the comment, your sum is: $$ \sum_{1 \le k \le n} k (k + 1) = \sum_{1 \le k \le n} k^2 + \sum_{1 \le k \le n} k = \frac{n (n + 1) (2 n + 1)}{6} + \frac{n (n + 1)}{2} = \frac{n (n + 1) (n + 2)}{3} $$ Or even simpler, with $k^{\overline{m}} = k (k + 1) \ldots (k + m - 1)$, you have $$ \sum_{1 \le k \le n} k^{\overline{m}} = \frac{n^{\overline{m + 1}}}{m + 1} $$ In your case $m = 2$.

vonbrand
  • 28,394
1

With the help of Mr.Vonbrand and Mr.Martin Argerami (my previous answer I linked), I could write the simplified question for my edited series:

    (1*2) + (2*3) + (3*4) + (4*5) + (5*6) + ... + (n * (n+1))

Solution:

$$ \sum_{1 \le k \le n} k (k + 1) = \sum_{1 \le k \le n} k^2 + \sum_{1 \le k \le n} k = \frac{n (n + 1) (2 n + 1)}{6} + \frac{n (n + 1)}{2} = \frac{n (n + 1)}{2} (\frac{(2n + 1)}{3} + 1) = \frac{n (n + 1)}{2} (\frac{(2n + 4)}{3} ) = \frac{n(n+1)2(n+2)}6. = \frac{n(n+1)(n+2)}3. $$

Let me know if I am wrong.