I honestly have no idea how this problem came to mind. Oh well; here it goes.
Start with a sequence , where the each term is the average of the previous terms. Define a function that chooses the base terms, and ,:
After coding up the function in Python and testing a few cases, I conjectured :
If , then .
It is interesting to note that the proposed function is the average of the numbers and . While it seems pretty obvious that this is true, nothing is true in mathematics until it is proven. A proof by induction probably seems like the most logical method, but I don't really know how to perform such a proof, much less with 2 variables. So, I tried deriving the formula.
Start with the first few terms of the sequence: A pattern is most definitely emerging:
The third term is always present in the sequence.
The denominator seems to be increasing in powers of 2 (the algebra shows why).
The -coefficient in the th term is the -coefficient in the th term (looking at the Python program shows why this is true).
Next, find the recursive formula for the -coefficient of the th term. Work:
Firstly, multiply first term by , and then combine like terms. The new -coefficient is the sum of the previous coefficient, double the coefficient before that, and 1. In other words, , with .
Since the denominator of the th term is , that means In other words, in order for the function to be true, the -coefficient in the algebraic expansion needs to be two-thirds of the denominator as the order of terms gets larger. (This is the link that can prove the function!)
Firstly, define . Secondly, it must be acknowledged that the -coefficient is, as established earlier, . Therefore, the -coefficient limit is
Next, find the sum of these two limits; the -limit is the same as ignoring the value of the function and plugging in 1 for (since 1 is the multiplicative identity); the opposite is true for the -limit. Therefore, the sum of these to limits is the output of the function when :
Recall that was the limit of a recurring sequence that averaged 2 terms. Consider : taking the average of 2 identical numbers outputs that number. If the process is repeated infinitely many times, it will make no difference. Therefore, Therefore, by , the original conjecture is true!
Please feel free to critique this proof; I am here to learn! I feel that it is too unprofessional, but I am still proud of it; after writing the proof, I googled "recursive sequence limits" and found a much shorter proof on StackExchange, so I know this isn't the best possible proof. I feel like such an amateur after writing this because it is so informal, and I wonder if this what being a "real" mathematician is like. Of course, it probably isn't and I'm just being a kid with excessively high hopes.
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
A really interesting note! Have you thought about generalising what happens with this sequence for an nth-order linear recurrence relations? Would be interesting to see what happens...
Log in to reply
I was just thinking about that this morning! I'll definitely make an update about that sometime in the next 12 hours.
Interesting! If you add in a little linear algebra, you would be able to generalise to more linear recurrence relations of higher order, and even know whether it converges at all:
You can split your recurrence relation into multiple degree 1 recurrence relations. For your recurrence this goes from an=2an−1+an−2 to:
bnan=an−1=2an−1+bn−1
The reason for doing this is so that you can express the nth term of the recurrence relation as a matrix product:
(a0b0)(anbn)=(yx)=(0.510.50)n(yx)
Let's make (0.510.50)=A and (yx)=x for notation sake. If we want to find an as n→∞, then we want to find n→∞limAnx
We can diagonalise the matrix A using its eigenvalues and eigenvectors. For this question,
A=PQP−1=(11−0.51)(100−0.5)(11−0.51)−1
And the reason why we diagonalise it is because we can easily calculate An:
An=PQnP−1=(11−0.51)(1n00(−0.5)n)(11−0.51)−1
It is here we can see if an diverges. If it does, the terms in Qn would blow up, making Anx blow up as well. Luckily, (and expectedly), for this value of A, the terms in Q converge, making:
n→∞limAn=(11−0.51)(1000)(11−0.51)−1
And so the coveted value we wanna find can be calculated by:
(anbn)=(1−0.511)(1000)(1−0.511)−1(yx)=31(2x+y2x+y)
Interestingly, in general, an is likely to diverge or go to 0. This is because in order for an to converge to a non-zero value, Q must have an entry of value 1, or Qn diverges or becomes the null matrix. You are very lucky to have chanced upon this recurrence relation.
Oh and as for the LATEX, you can use \begin{align} <ur eqns> \end{align} to line them up neatly.
Log in to reply
I'm confused when you say "generalize." Do you mean the average of the previous n terms instead of 2? It looked to me as if you did something different, but I honestly have little to no comprehension of linear algebra (yet).
Log in to reply
By generalise I mean any recurrence relation of the form an=i=1∑kcian−i
Log in to reply
Have a look into linear recurrence relations and how to solve them in general.
Log in to reply
To add to the last point: You'd want the eigenvalues of Q to all be between −1 and 1 (inclusive, I think?), otherwise the limit of the SVD approaches infinity.
On a more sour note: Can you check your calculations again? The matrix A should read
(00.510.5)
if you define the recurrence as such. If we modify Blan's initial terms to a0 and a1 instead of a1 and a2 then you would want the matrix equation to start at n=1, so that your initial terms are given by b1 and a1, not b0 and a0. Aside from that, maybe you could check your SVD again, but it shouldn't change the Q matrix if you modify the P matrix. I'd also put a lim sign in front of the bn, an vector at the end, to be precise.
Log in to reply
My bad, this can be easily remedied by switching the positions of an and bn, a typo on my part. If we want an to converge to a finite non zero value, all the entries of Q have to be between -1 and 1, inclusive of 1 but not inclusive of −1. Furthermore, at least 1 entry of Q has to be 1. With regards to the undex starting from 0, it is essentially the same, but i chose to start from 0 so that I don't have a n+1 power in my Q, which is kinda ugly
Log in to reply
Very interessting practice!
One afterthought: generalization.
Others have considered the same idea, but I'm specifically generalizing where an is the average of the previous k terms and f has k inputs. I edited my Python code I used in the proof to fit k=3, and I successfully predicted multiple outputs with the function f(x, y, z)=6x+2y+3z.
I currently don't have the time (and quite possibly the ability, but I'll try later) to prove the general case for k, but I conjecture