ag-gipp/GoUldI

View on GitHub
data/mathtoweb/292.mml

Summary

Maintainability
Test Coverage
<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mrow><mo rspace="0.3em" lspace="0em" stretchy="true" fence="true" form="prefix">(</mo><mfrac linethickness="1"><mi>a</mi><mi>p</mi></mfrac><mo rspace="0em" lspace="0.3em" stretchy="true" fence="true" form="postfix">)</mo></mrow><mo>=</mo><mrow><mo rspace="0.3em" lspace="0em" stretchy="true" fence="true" form="prefix">{</mo><mtable class="m-cases" columnalign="left"><mtr><mtd><mn>1</mn></mtd><mtd><mtext> if </mtext><mi>a</mi><mtext> is a quadratic residue modulo </mtext><mi>p</mi><mtext> and </mtext><mi>a</mi>\not<mo>&#x02261;</mo><mn>0</mn><mspace width="0.501em" /><mrow><mo form="prefix">(</mo><mi>mod</mi><mspace width="0.501em" /><mi>p</mi><mo form="postfix">)</mo></mrow><mo>,</mo></mtd></mtr><mtr><mtd><mo>-</mo><mn>1</mn></mtd><mtd><mtext> if </mtext><mi>a</mi><mtext> is a quadratic non-residue modulo </mtext><mi>p</mi><mo>,</mo></mtd></mtr><mtr><mtd><mn>0</mn></mtd><mtd><mtext> if </mtext><mi>a</mi><mo>&#x02261;</mo><mn>0</mn><mspace width="0.501em" /><mrow><mo form="prefix">(</mo><mi>mod</mi><mspace width="0.501em" /><mi>p</mi><mo form="postfix">)</mo></mrow><mo>.</mo></mtd></mtr></mtable><mphantom rspace="0em" lspace="0.3em" stretchy="true" fence="true" form="postfix">}</mphantom></mrow></mrow></math>