Discrete Derivative or Summary of How to Sum Series
Introduction
Has it ever happened that you want to sum some infinite series, but you cannot pick up a partial sum of the series? Have you still not used the discrete derivative? Then we go to you!
Definition
Discrete Derivative Sequence an call this sequence Deltaan that for any natural n>1 performed:
Deltaan=anβanβ1
Consider the following examples:
an=1Deltaan=anβanβ1=1β1=0
an=nDeltaan=anβanβ1=nβ(nβ1)=1
an=n2an=n2β(nβ1)2=n2β(n2β2n+1)=2nβ1
an=n3Deltaan=n3β(nβ1)3=3n2β3n+1
an=knDeltaan=knβknβ1=knβ1(kβ1)
Well, you get the point. Something like a derivative of a function, right? We understood how to calculate discrete derivatives of the "simplest" sequences. Ahem, but what about the sum, difference, product, and quotient of sequences? The βordinaryβ derivative has some differentiation rules. Let's come up with a discrete one!
First, consider the amount. It is logical that the sum of sequences is also some kind of sequence. Let's try to find the derivative by definition:
Finding the integral is not always so easy, right? What do we do in difficult cases? That's right, integrate in parts. Perhaps there is an analogue? I will not torment you, he is, and now we will get him out.
Suppose we need to calculate the sum of a series
p=constsumni=1ipi=?
What to do? It is unlikely that you will be able to so easily pick up the discrete antiderivative to the sequence. Let's watch.
It may seem to someone that the formula has become even more cumbersome, and we only complicated our work. But this is not so. Let be f(i)=i,g(i)=fracpi+1pβ1 then:
I propose to practice with this on the example of a problem from the selection in Tinkoff Generation for courses on Machine Learning . Here is the problem itself:
You are tired of solving problems from the selections to Tinkoff Generation courses and decided to take a break by watching several episodes of the new series that everyone is talking about.
You start to watch all the series, starting with the first.Each episode lasts one hour.After watching the next series, you with constant probability ppp start watching the next one, otherwise your break will end and you will return to work.
Starvation, sleep, and other needs do not stop you, and the series has an infinite number of episodes;in theory, your break can last forever.