non-residues modulo $p$ (by R. Thangadurai, V. Kumar) -- On solving a generalized