The terms of the form 7kx² in the generalized Lucas sequence with parameters P and Q
Let Vₙ(P,Q) denote the generalized Lucas sequence with parameters P and Q. For all odd relatively prime values of P and Q such that P² + 4Q > 0, we determine all indices n such that Vₙ(P,Q) = 7kx² when k|P. As an application, we determine all indices n such that the equation Vₙ = 21x² has solutions.