Solution 1
For 0<k<m, we have
akak+1=ak−1ak−3.
Thus the product akak+1 is a monovariant: it decreases by 3 each time k increases by 1. For k=0 we have akak+1=37⋅72, so when k=337⋅72=888, akak+1 will be zero for the first time, which implies that m=889, our answer.
Note: In order for am=0 we need am−2am−1=3 simply by the recursion definition.
Solution 2
Plugging in k=m−1 to the given relation, we get 0=am−2−am−13⟹am−2am−1=3. Inspecting the value of akak+1 for small values of k, we see that akak+1=37⋅72−3k. Setting the RHS of this equation equal to 3, we find that m must be 889.
~ anellipticcurveoverq
Induction Proof
As above, we experiment with some values of akak+1, conjecturing that am−pam−p−1 = 3p ,where m is a positive integer and so is p, and we prove this formally using induction. The base case is for p=1, am=am−2−3/am−1 Since am=0, am−1am−2=3; from the recursion given in the problem am−p+1=am−p−1−3/am−p, so am−p+1=3p/am−p−3/am−p=3(p−1)/am−p, so am−pam−p+1=am−(p−1)am−(p−1)−1=3(p−1), hence proving our formula by induction. ~USAMO2023
Solution 3 (Telescoping)
Note that ak+1⋅ak−ak⋅ak−1=−3. Then, we can generate a sum of series of equations such that ∑k=1m−1ak+1⋅ak−ak⋅ak−1=−3(m−1). Then, note that all but the first and last terms on the LHS cancel out, leaving us with am⋅am−1−a1⋅a0=−3(m−1). Plugging in am=0, a0=37, a1=72, we have −37⋅72=−3(m−1). Solving for m gives m=889. ~sigma
Video solution
https://www.youtube.com/watch?v=JfxNr7lv7iQ