All language subtitles for 4. Sum of Arithmetic Sequence - Question

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

So welcome back and in this exercise, what we are going to do is once again to talk about arithmetic

sequence and basically it's going to be very singular exercise, but just we are going to calculate

something different.

So in this exercise, what you have to do is to write a program that calculates and Prince asks and

basically what is s.m?

It's the sum of a given sequence.

OK, so basically previously we had this sequence as an example and we said that the difference is two,

right?

That's the number, the difference between every two consecutive neighbors.

And also we have the initial theorem.

We had the number of elements in this sequence and we had a and which is the term of these given arithmetic

sequence.

So now what we have to do is previously we had one value, one terminology missing, and we had to use

some formula to find it out to find it through some calculations.

Now, what we will have to do is simply to use some other formula to find out what will be the sum of

all of these elements in a given sequence.

So basically, we could also summarize them just one after another.

So one plus three plus five plus seven plus nine and so on up until 17.

But this approach and this technique probably will won't be good enough if we are required to use it

with the eye to know, for example, the last element will be 999 will be pretty difficult to use it

in in using our calculator.

So for that, what we have to do is to use the following formula that specifies how you can count and

how you can calculate the sum of an arithmetic sequence.

So it goes like this.

The sum equals the sum of an elements equals two with the initial value plus the last value.

OK, the Ethereum multiplied by NP, which is the total number of elements in a given sequence divided

by two.

OK, so that's how you use it.

That's our formula.

That's the formula we are going to use for our calculations.

And of course, once again, we could have done it on a piece of paper.

But now what we have to do is to make it programmatically in our programming language.

So just to show you guys an example so we know SFM equals to this terminology of these formula.

So what will be the sum of these now of this sequence instead of calculating it one by one and adding

the result, it will be as of an equals to one, because that's the initial term.

Alphen, which is the anthem, which is 17 multiplied by an equals two nine nine elements divided by

two, which gives us a total of 18 multiplied by nine, divided by two, which is a total of nine,

multiplied by nine, which is a total of eighty one.

So that will be the sum of all the elements inside of this sequence with nine elements.

So I hope the task is clear to you guys.

Simply write a program that should read from the user and the element, which is an initial theorem,

a one in total terms, and the program should calculate the sum of these given arithmetic sequence.

So give it a try and I will see you in the Solutions video.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.