Hi, I have this problem.

Letpbe an odd prime. Show that the legendre symbol (5/p)= 1 if and only if $\displaystyle p\equiv{-1}(mod 5)$.

I am really struggling to understand this legendre symbol stuff so if anyone could give me a clue I would be very grateful.

Thanks,

Katy