I can't understand the line that covered by red. also can someone tell me the formula's name or it's proof.
Thanks for any future comments :)
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
I can't understand the line that covered by red. also can someone tell me the formula's name or it's proof.
Thanks for any future comments :)
Name |
---|
I can't delete this comment...
https://nrich.maths.org/2478
You can find the formula in a manner similar to proving
1+2+3+4+..+n = n*(n+1)/2
Thanks
This is an arithmetic series. usually you can evaluate sequences x, x+d, x+2d, ... x+(n-1)*d by using the fact that x + x+(n-1)*d (simply pairing up the first and nth terms) equals x+d + x+(n-2)*d, + etc so basically you can just find the average of each element, which is (x+x+(n-1)*d) /2 * number of terms
Thanks
Hope it helps!
In second line when we take (b-a+1) as common factor isn't it look like that (b-a+1)*(a+b-a)/2 ? how does it become (a+b)
Ah it's clear now Thanks