Correct solutions were submitted by Dan Dima, Ron Welch, Bill Webb, Nancy Schwarzkopf, Lou Cairoli and Jens Voß.
We need to show that n2 is congruent to -1 modulo p. Notice that
Since (p-1)/2 is even, this is (p-1)!, which is congruent to -1 modulo p by Wilson's Theorem.