0

Question:

Consider the sequence defined by

$a_1 = 2 $

$a_2 = 3$,

and $a_{2k+2} = 2+a_k +a_{k+1}$ and $a_{2k+1} =2+2a_k$ for all integers $ k \ge 1$.

Determine all positive integers n such that $\frac{a_n}{n}$ is an integer.

P.S.: This question is already on Mathstackexchange here, but I solved it in a different way and am not able to understand where I went wrong. Can you please help me find where my solution is wrong?

My Attempt:

Let the first equation be $a_{2k+2} = 2+a_k +a_{k+1}$ ----eq 1

Second equation $a_{2k+1} =2+2a_k$ -----eq 2

from eq 1, $a_{2k} = 2+a_k +a_{k-1}$ for $k \ge 2$

$a_{2k} = (1+a_k) +(1+a_{k-1})$

From eq 2, $\frac{a_{2k+1}}{2} =1+a_k$ . Similarly, $\frac{a_{2k-1}}{2} =1+a_{k-1} $ for $k \ge 2$

Therefore , $a_{2k} = \frac{a_{2k+1}}{2} +\frac{a_{2k-1}}{2}$

$2a_{2k} = a_{2k+1} +a_{2k-1}$ ----- eq3

$2a_{2k+1} = a_{2k} - a_{2k-1}$ for $k \ge 2$

Now, I got a recursive formula for $a_k$ when $k$ is odd. Next, I tried to find the recursive formula when $k$ is even.

Let's assume an integer m which is odd.

Therefore, $2a_{m} = a_{m-1} - a_{m-2}$ for $m \ge 5$

using eq 1, $a_{2m} = 2+a_m +a_{m-1}$ for $m \ge 2$ . Substituting $a_m$,

$a_{2m} = 2+ 2a_{m-1} - a_{m-2} +a_{m-1}$

$a_{2m} = 2+ 3a_{m-1} - a_{m-2}$

$a_{2m} = 3(1+a_{m-1}) -(1+ a_{m-2})$ for $m \ge 5$

$a_{2m} = 3(\frac{a_{2m-1}}{2}) -(\frac{a_{2m-3}}{2})$

$2a_{2m} = 3a_{2m-1} - a_{2m-3}$

using eq3 , $2a_{2m-2} = a_{2m-1} +a_{2m-3}$ for $ m \ge 4$

$a_{2m-1} - 2a_{2m-2} = - a_{2m-3}$

Substituting,

$2a_{2m} = 3a_{2m-1} + a_{2m-1} - 2a_{2m-2} $

$a_{2m} = 2a_{2m-1} - a_{2m-2} $ for $ m \ge 5$

We proved this formula works for $a_{2m}$ where m is odd. Now let $n=2m$ be even.

Using the relation $a_{2m} = 2a_{2m-1} - a_{2m-2} $ for $ m \ge 5$ we got right now,

$a_{n} = 2a_{n-1} - a_{n-2} $ for $ n \ge 10$ and n is even

this is the same formula we got while deriving the relation for m when it is odd. So, it's the same calculation and we get to the conclusion that

$a_{2n} = 2a_{2n-1} - a_{2n-2} $ for $ n \ge 10$

Now, we have proved this formula works for every number even or odd.

so in general, $a_{r} = 2a_{r-1} - a_{r-2} $ for $ r \ge 20$

But this formula is holds incorrect for r = 24

Why??

Bill Dubuque
  • 282,220
  • I reached some conclusions like $ a_n $ is even when $n$ is odd and difference of two consecutive terms is always $1$ or $3$ – Ved Patel Mar 11 '25 at 18:05
  • Yeah that was given in the official solution. – 20 - hitesh ram reddy Mar 11 '25 at 18:08
  • 2
    For a solution-verification question to be on topic you must specify precisely which step in the proof you question, and why so. This site is not meant to be used as a proof checking / debugging machine. – Bill Dubuque Mar 11 '25 at 19:17
  • It should be pretty easy to figure out where you went wrong: Simply plug in some example values into every equation you wrote down. The first one that's wrong is probably where the mistake happened. – anankElpis Mar 11 '25 at 19:20
  • @anankElpis Yes, that well-known debugging method is described in many prior answers, e.g. here. $\ \ $ – Bill Dubuque Mar 11 '25 at 19:21

0 Answers0