Problem

Source: Belarusian national olympiad 2024

Tags: algebra, Inequality, inequalities



Positive real numbers $a_1,a_2,\ldots, a_n$ satisfy the equation $$2a_1+a_2+\ldots+a_{n-1}=a_n+\frac{n^2-3n+2}{2}$$For every positive integer $n \geq 3$ find the smallest possible value of the sum $$\frac{(a_1+1)^2}{a_2}+\ldots+\frac{(a_{n-1}+1)^2}{a_n}$$M. Zorka