Bài 1: Tính tổng
1/ 1 + (-2) + 3 + (-4) + . . . + 19 + (-20)
2/ 1 – 2 + 3 – 4 + . . . + 99 – 100
3/ 2 – 4 + 6 – 8 + . . . + 48 – 50
4/ – 1 + 3 – 5 + 7 - . . . . + 97 – 99
5/ 1 + 2 – 3 – 4 + . . . . + 97 + 98 – 99 – 100
Bài 2: Tính tổng các số nguyên x biết:
1/ -20 < x < 21
2/ -18 ≤ x ≤ 17
3/ -27 < x ≤ 27
4/ │x│≤ 3
5/ │-x│< 5
\(\text{1: 1+(-2)+3+(-4)+........+19+(-20)}\)
\(\text{=1-2+3-4+.....+19-20}\)
\(\text{=-1+(-1)+..........+(-1)}\)
\(\text{=-1.(20-1)+1:2}\)
\(\text{=-1.10}\)
\(=-10\)
\(\text{2: 1- 2 +3 -4+......+99 - 100}\)
\(\text{=( 1- 2) +(3 -4)+......+(99 - 100)}\)
\(\text{=-1+(-1)+.....+(-1)}\)
\(\text{=-1.(100-1)+1:2}\\ \text{=-1.50}\)
\(=-50\)
\(\text{3: 2 - 4+6 - 8+.....+48 - 50}\\ \text{=(2 - 4)+(6 - 8)+.....+(48 - 50)}\\ \text{=-2+(-2)+......+(-2)}\\ \text{=-2.(50-2):2+1}\\ \text{=-2.25}\\ =-50\)
\(\text{4: -1 + 3 - 5 +7 -.....+97 - 99}\\ \text{=-1 +(3-5)+(7-9)+.......+(97-99)}\\ \text{=-1+(-2)+(-2)+........+(-2)}\\ \text{=-1+[(-2).(99-3):2+1]}\\ \text{=-1+[(-2).49]}\\ \text{=-1+(-98)}\\ =-99\)
\(\text{5: 1 + 2 – 3 – 4 + . . . . + 97 + 98 – 99 – 100}\)
\(\text{=1−2+3−4+5−6+...+99−100}\)
\(\text{=(1−2)+(3−4)+(5−6)+...+(99−100) }\)
\(\text{=(−1)+(−1)+(−1)+...+(−1)}\)
\(\text{=(−1).50}\)
\(\text{=−50}\)
1/ 1 + (-2) + 3 + (-4) + . . . + 19 + (-20)
=(1-2)+(3-4)+..........+(19-20)
=-1+(-1)+.......+(-1)
=-1.[(20-1)+1:2]
=-1.10
=-10
2/ 1 – 2 + 3 – 4 + . . . + 99 – 100
=-1+(-1)+....+(-1)
=-1.[(100-1)+1:2]
=-1.50
=-50
3/ 2 – 4 + 6 – 8 + . . . + 48 – 50
=-2+(-2)+.......+(-2)
=-2.[(50-2):2]:2
=-2.12
=-24
=-2.