Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,630 --> 00:00:06,660
Welcome back, ladies and gentlemen, my name is Vlad, and in this exercise, what we are going to
2
00:00:06,660 --> 00:00:14,010
do is simply to calculate the anthe term of a given arithmetic sequence.
3
00:00:14,570 --> 00:00:21,250
So what do you have to do is to simply write a program that calculates and prints a m.
4
00:00:21,300 --> 00:00:26,050
OK, so the F term of A given arithmetic sequence.
5
00:00:26,070 --> 00:00:33,720
OK, so just based on the previous video that you hopefully did not skip, we have to calculate this
6
00:00:33,990 --> 00:00:35,170
anthe term.
7
00:00:36,000 --> 00:00:40,590
So what we will be given basically is just this sequence.
8
00:00:40,630 --> 00:00:41,090
OK.
9
00:00:41,130 --> 00:00:46,370
And it has, it has we know first of all, we know where is the laser.
10
00:00:47,010 --> 00:00:52,640
But what we don't know is the value inside of these and terms.
11
00:00:52,650 --> 00:00:57,810
So that's something that we have to find out for ourselves because we don't know it.
12
00:00:58,170 --> 00:01:05,130
And although we could have just calculated it manually every time just by adding the value of two again
13
00:01:05,130 --> 00:01:09,040
and again and again until we reach out the ninth element.
14
00:01:09,420 --> 00:01:17,010
OK, but that's just tedious work, not to mention the fact that there may be really large sequences,
15
00:01:17,400 --> 00:01:20,160
that it's not going to be that easy to calculate.
16
00:01:20,160 --> 00:01:27,100
And basically that's why we need to have some formula that we can use for that and not do all of this
17
00:01:27,120 --> 00:01:27,960
messy work.
18
00:01:28,710 --> 00:01:34,980
So if we want to take a look at how this rule is applied, we can simply use these formula right here
19
00:01:34,980 --> 00:01:42,690
to calculate this is a given mathematical formula that we simply can take and use it for our needs or
20
00:01:42,690 --> 00:01:48,100
basically to use it in order to find the term of the sequence.
21
00:01:48,540 --> 00:01:50,520
So this formula goes like this.
22
00:01:50,520 --> 00:01:59,280
If you want to find the term of this of this arithmetic sequence, you have to, first of all, know
23
00:01:59,280 --> 00:02:00,000
a one.
24
00:02:00,000 --> 00:02:03,060
And that's something we know you have to know in.
25
00:02:03,300 --> 00:02:04,950
And it's something we know.
26
00:02:04,950 --> 00:02:08,460
We know the number of elements in this arithmetic sequence.
27
00:02:08,760 --> 00:02:13,220
And also we have to know the difference between any two consecutive elements.
28
00:02:13,530 --> 00:02:16,140
So D is also known and is two.
29
00:02:16,590 --> 00:02:24,720
So there is no problem for for us to calculate and to find the term of this sequence.
30
00:02:25,530 --> 00:02:33,180
But just to give you more confident and just to show you additional example and equals to any one plus
31
00:02:33,180 --> 00:02:36,540
and one minus one and minus one multiplied by D.
32
00:02:36,960 --> 00:02:40,860
And if we want to simply dig these values, put them inside of here.
33
00:02:41,210 --> 00:02:42,630
So it will look like this.
34
00:02:42,630 --> 00:02:47,360
A one is one, a one is one plus nine minus one and is nine.
35
00:02:47,370 --> 00:02:53,730
So we just replace a variable with nine value.
36
00:02:54,060 --> 00:02:55,370
Two is the difference.
37
00:02:55,380 --> 00:03:02,190
And there we go, one plus eight multiplied by two and one plus 16 equals to 17.
38
00:03:02,190 --> 00:03:04,770
So that's how we find the anthurium.
39
00:03:05,100 --> 00:03:13,140
Basically we already remember that it's exactly what it should be that just now we used it to find the
40
00:03:13,320 --> 00:03:13,830
theorem.
41
00:03:13,830 --> 00:03:21,630
We used some formula, some mathematical formula, and basically that's it regarding this explanation.
42
00:03:22,140 --> 00:03:26,570
And while that's all good, we are not at a math gap.
43
00:03:26,580 --> 00:03:30,470
We are at a programming class, a programming tutorial.
44
00:03:30,750 --> 00:03:39,330
So what we have to do right now is to write a program that calculates and print this and term based
45
00:03:39,330 --> 00:03:44,360
on some some combination of these values that will be given to you.
46
00:03:45,180 --> 00:03:46,890
So give it a try.
47
00:03:48,000 --> 00:03:52,470
Take at least 10, 15 minutes to think about it and try to solve it on your own.
48
00:03:52,650 --> 00:03:59,970
And once you are ready to compare your results with my solution, feel free to move on.
49
00:04:00,580 --> 00:04:03,440
So until next time, until I see you in the solution.
50
00:04:03,450 --> 00:04:09,300
Good luck, guys, and let me know if you like this video and if you have any questions left.
51
00:04:09,780 --> 00:04:12,330
This is Alphatech, and I'll see you next time.
5145
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.