Problem

Source: Iran MO 2024 second round P6

Tags: number theory



Find all natural numbers $x,y>1$and primes $p$ that satisfy $$\frac{x^2-1}{y^2-1}=(p+1)^2. $$