User:LkNsngth/quadratic equation mod p

Source: Wikipedia, the free encyclopedia.

blah blah blah...

the problem reduces to computing

This is equal to: where is the combinations formula. Rearranging the equation gives:

The only nonzero term is given when m=0 so we get which modulo p gives