Fix the computing of q = mod / p
Merge pull request #1 from bouuntyy/master

Fix the computing of q = mod / p