A) Oblicz sumę liczb całkowitych od -45 do 35 B) Oblicz iloczyn liczb całkowitych od -18 do 9
wik8947201
A) -45-44-43-42-41-40-39-38-37-36 - (-35-34-...0...+34+35)= W nawiasie suma jest rowna 0 -45-36-44-37-...-41-40=-5*81=-405 b) Iloczyn -18*...*0*1*...9=0 Wsrod czynnikow iloczynu jest 0, wynik 0.
3 votes Thanks 5
mmartynkaa
A) -45-44-43-42-41 + ... + 31+32+33+34+35
w tej sumie są pary takie jak -35+36 -34+34 -33+33 te pary "się zerują"
więc szukana suma to -45-44-43-42-41-40-39-38-37-36 to można już normalnie obliczyc, wynik to -405
można to także obliczyc jako suma ciągu arytmetycznego
a1=-45 an=35 n=81
b) (-18)*(-17)*(-16)*(-15)*(-14)*(-13)* ... * (-1) * 0 * 1*2*3*4*5*6*7*8*9 cokolwiek *0 = 0 więc wynik to 0
-45-44-43-42-41-40-39-38-37-36 - (-35-34-...0...+34+35)=
W nawiasie suma jest rowna 0
-45-36-44-37-...-41-40=-5*81=-405
b)
Iloczyn -18*...*0*1*...9=0
Wsrod czynnikow iloczynu jest 0, wynik 0.
-45-44-43-42-41 + ... + 31+32+33+34+35
w tej sumie są pary takie jak
-35+36
-34+34
-33+33
te pary "się zerują"
więc szukana suma to
-45-44-43-42-41-40-39-38-37-36
to można już normalnie obliczyc, wynik to -405
można to także obliczyc jako suma ciągu arytmetycznego
a1=-45
an=35
n=81
b)
(-18)*(-17)*(-16)*(-15)*(-14)*(-13)* ... * (-1) * 0 * 1*2*3*4*5*6*7*8*9
cokolwiek *0 = 0
więc wynik to 0
licze na naj
M