Given a positive integer n(n≥2)n (n \geq 2)n(n≥2), find the maximum real number λ\lambdaλ such that the inequality an2≥λ(a1+a2+⋯+an−1)+2ana_{n}^{2} \geq \lambda \left(a_{1}+a_{2}+\cdots+a_{n-1}\right) + 2 a_{n} holds for any positive integers satisfying .