Problem

Source: Stars of Mathematics 2020 (senior level)

Tags: number theory, quadratic residue, romania



Determine the primes $p$ for which the numbers $2\lfloor p/k\rfloor - 1, \ k = 1,2,\ldots, p,$ are all quadratic residues modulo $p.$ Vlad Matei