WEBVTT 00:00.150 --> 00:03.890 Their problem for this week is to calculate some sort of mathematical series. 00:03.930 --> 00:05.330 What specifically are these theories. 00:08.530 --> 00:13.270 This is kind of cool because in the end he will have a formula to calculate the result of any mathematical 00:13.270 --> 00:17.580 series that in most of the cases it is impossible to calculate with classical maths. 00:17.680 --> 00:22.960 So I think that you can need to find the first step you need to create a for loop that goes from one 00:23.170 --> 00:28.780 to the user's variable and then when you do have a variable that say that is out in the deficit in every 00:28.780 --> 00:29.770 step of the way. 00:29.770 --> 00:36.490 So again we would initialize a use equal to zero and then in every step of the way WE WILL HAVE A is 00:36.580 --> 00:38.900 equal to a black function. 00:39.040 --> 00:42.340 So for x is equal to 1. 00:42.730 --> 00:47.220 A is equal to zero plus one plus one plus five. 00:47.560 --> 00:56.920 Then 4 x is superfecta to have a quarter of seven last four plus one plus five divided by two and so 00:56.920 --> 00:58.250 on and so forth. 00:58.270 --> 01:01.990 First we started that with the input of the user as always. 01:02.050 --> 01:10.750 Then we really your lies a sequel to zero where we create the for law X in there ain't one tool in the 01:10.750 --> 01:11.240 door. 01:11.410 --> 01:16.360 And because it is character as we already talked about in previous readers also we need to have the 01:16.360 --> 01:21.510 past one because the follow up always goes to N minus one. 01:21.520 --> 01:24.750 Now we will calculate as a temporary variable. 01:24.840 --> 01:32.560 There's out of our series so x multiplied by X because it is exquire plus X the last five divided by 01:32.650 --> 01:33.050 X. 01:33.100 --> 01:40.200 Then we will increase a cell a sequel to A plus demp and we can bring those out. 01:40.240 --> 01:40.860 Okay. 01:40.960 --> 01:44.600 I think that it's correct.