Exercise

What can you say about the value of n(p-1)/2 mod p for p an odd prime?

It is always 1

It is always -1

It is always 1 or -1