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))
6is absent in series – Grijesh Chauhan Jun 10 '13 at 11:26(1*2) + (3*2) + (4*3) + (5*4) + (6*5) + ... + (N * (N-1))– Grijesh Chauhan Jun 10 '13 at 11:30