4

For which prime numbers p does the congruence $x^2 + x + 1 \equiv 0 \pmod{p}$ have solutions?

We've recently learnt about quadratic reciprocity in class, however I am not sure how to tackle this problem. I have tried starting with the $b^2-4ac$ (discriminant) but that hasn't really helped.

  • $p=3$, $p=7$ for instance. – Bernard Jan 31 '15 at 17:16
  • Welcome to MathSE. I am glad you found the help you needed on this question. There is information about writing mathematics on this site here: http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference. Also, the quantity $b^2 - 4ac$ is called the discriminant. – N. F. Taussig Jan 31 '15 at 17:57

2 Answers2

5

Hint: Consider $4(x^2 +x+1) = (2x+1)^2 + 3$. Therefore, if it has a solution modulo $p$, $-3$ must be a quadratic residue. Use quadratic reciprocity.

Nacho Darago
  • 1,004
3

Simpler than reciprocity: $\,x^2+x+1 \equiv 0 \,\overset{\large {\cdot\, (x-1)}}\Rightarrow\,x^3\equiv 1,\ $ so by basic results on cyclic groups $\ldots$

Bill Dubuque
  • 272,048