# How to evaluate this Legendre symbol?

Let $w$ be a primitive root. That is $w$ has order $p-1 \mod p$. Evaluate $$\left(\frac{w}{p}\right)$$ This is the task I am faced with so far I have only $w^{p-1}\equiv 1 \mod p$

I am having some difficulty with this problem could anyone point me in the right direction thanks. I normally like to note more of my thoughts but I have been thinking about this for a while and nothing of substance has appeared?

Well if $w$ has order $p - 1,$ then since $(\frac{w}{p}) \equiv w^{\frac{p-1}{2}} \pmod {p}, (\frac{w}{p})$ won't be 1. I think you can deduce what $w$ on $p$ should be.
• So it would be $-1$ then right? – Ryan S Dec 14 '16 at 17:40
• But rather than eliminating possible choices, $p - 1$ has to show up in the power sequence of $w,$ and it can only show up at $w^{\frac{p-1}{2}}$ otherwise $w$ cannot be a primitive root. – green frog Dec 14 '16 at 17:46