Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I was to solve the following functional discrete equation (I arguing that $a_k$ is a discrete function):




and boundary conditions

\begin{cases} a_{1} & =0\\ a_{p+1} & =n \end{cases}

where $n\gt1, p\gt0 \text{ and } k=1,3,\dots,p$

Since the sum can be computed, and I've arrived to the following non-linear recursion equation:


After trying several approaches, I desperately tried brute force, computing several cases to the different parameters, and, after some effort, I found this simple relationship:

\begin{equation}a_k = \frac{1}{2p}\left(-p+2p\left(n+1\right)-\sqrt{p^{2}+4p\left(p+1-k\right)\left(n+1\right)n}\right)\end{equation}


  1. Agrees with the boundary conditions.
  2. When I substitute it on the recursive equation gives a true sentence.

What I believe is enough to prove that this is a solution of the problem.

what I'm asking is if there is any method for solving this problem that can lead me to the same result without having to make this "anzatz"; the solution seems very simple, suggesting me a possible analytical method to solve the recursion equation (the solution seems the solution of a $2^ยบ$ order algebraic equation).

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.