Metamath Proof Explorer


Theorem lgsval3

Description: The Legendre symbol at an odd prime (this is the traditional domain of the Legendre symbol). (Contributed by Mario Carneiro, 4-Feb-2015)

Ref Expression
Assertion lgsval3 AP2A/LP=AP12+1modP1

Proof

Step Hyp Ref Expression
1 eldifsn P2PP2
2 lgsval2 APA/LP=ifP=2if2A0ifAmod81711AP12+1modP1
3 ifnefalse P2ifP=2if2A0ifAmod81711AP12+1modP1=AP12+1modP1
4 2 3 sylan9eq APP2A/LP=AP12+1modP1
5 4 anasss APP2A/LP=AP12+1modP1
6 1 5 sylan2b AP2A/LP=AP12+1modP1