Skip to main content
5 of 5
added 152 characters in body; edited tags
Turbo
  • 13.9k
  • 1
  • 27
  • 76

On Cubic Non-Residues Modulo a Prime

What is a good test for identifying cubic non-residues/residues and higher power non-residues/residues modulo a prime $R$ in terms of computational complexity?

Given $M$ and $N$, is there a good way to find a prime $R$ such that $M$ is cubic non-residue modulo $R$ and $N$ is cubic residue modulo $R$?

Update after David Speyer's answer: Does the probability estimate hold good if $R$ is restricted to be between $M$ and $N$ and $M < 2N$ or $N < 2M$?

Turbo
  • 13.9k
  • 1
  • 27
  • 76