While reading the book “Specific Mathematics” , at the same time gaining knowledge and realizing my incompetence in the question, in the very first chapter I came across the method of sets that the authors use to solve the Problem of Josephus . They do not explain the method, considering it too elementary, so I had to look for information about it myself. I didn’t find a detailed description in the Russian-speaking segment of the Internet, so I used the answer from math.stackexchange.com , which I translated later, and now I present it to you so that those who do not understand the method instinctively can also penetrate. Further - translation from the first person. Note : in the beginning I will try to describe several key ideas of the repetition method using a (very) simple example. This should give us some basic understanding of this method. But in order to understand what is really going on , we will also consider one much more complicated example ( comment re.: You can find it in the original article, here is just a basic explanation ).
Method of repetition (basic concepts)
This method is based on two main ingredients . The first is the ability to build a linear combination of already known recurrences. Suppose there is recurrence for
It can be seen that in this case we have a set of two solutions and which we can linearly combine to find the desired solution . ')
BUT: we usually start with recurrence. not having suitable candidates available. And this is the second ingredient. We have to build a set.
The second ingredient is building a kit , which can be used for linear combinations. Let's say we start with recurrence
It's time for some creative ideas, which is usually the most difficult part in using this method. We want to find a set of two members. One of them with and the other with equal to the square of . To do this, we must select several suitable candidates for whose term is the sought .
Let's pick up the first candidate . It is quite simple (in this case), because equality gives
\ begin {align *} {a_0} & = {0} \\ {n} & = {a_n} + n - 1, \ quad {n}> 0 \ end {align *}
and we find: and . We got the first candidate, let's say such that
\ begin {align *} {x_0} & = {0} \\ {x_n} & = {1} + {x_ {n-1}}, \ quad {n}> 0 \ tag {2} \ end { align *}
By a similar principle, we can find a suitable second candidate who will provide us square from, noting that the sum of natural numbers to the degree usually comes down to something in degree . Let's pick upwhich gives
We see that also contains a linear term in which is unnecessary for us, because we are looking for (following formula (1)) . Therefore, we will expand our recruitment by a third member, who will provide us linear on . This way we will be able to get rid of the linear addend corresponding linear combination of the three members of the set. We will pick up such which gives
\ begin {align *} a_0 & = 0 \\ n ^ 2 & = a_n + (n-1) ^ 2, \ quad n> 0 \ end {align *}
and find and .
So we get a third candidate , let's say for which it is true
\ begin {align *} u_0 & = 0 \\ u_n & = 2n-1 + u_ {n-1}, \ quad n> 0 \ tag {4} \ end {align *}
Note that we need to define a constant. , given that we also need to meet the initial condition . We do it by defining and in the end we get:
To summarize
Description of the set method: To solve form recurrence
we find candidates , ..., formulas so that they can be linearly reduced to form
after which we consider the generalized representation (5) replacing on
and solve simpler recurrences
picking upTo obtain .
Solutionsat form a solution kit.
Determine the linear combination
and display the solution
after which we define according to the initial conditions.
Note: There may be situations in which you have to define more than one initial condition. Note: It is possible that the set will require further expansion in order to get rid of the extra components that appear when calculating .