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 :)
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
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 :)
Название |
---|
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