Metamath Proof Explorer


Theorem lgs2

Description: The Legendre symbol at 2 . (Contributed by Mario Carneiro, 4-Feb-2015)

Ref Expression
Assertion lgs2 AA/L2=if2A0ifAmod81711

Proof

Step Hyp Ref Expression
1 2prm 2
2 lgsval2 A2A/L2=if2=2if2A0ifAmod81711A212+1mod21
3 1 2 mpan2 AA/L2=if2=2if2A0ifAmod81711A212+1mod21
4 eqid 2=2
5 4 iftruei if2=2if2A0ifAmod81711A212+1mod21=if2A0ifAmod81711
6 3 5 eqtrdi AA/L2=if2A0ifAmod81711