Quote:
Originally Posted by baih
...and
(c +1)/4 = 1 Mod (p1)

This has no generality.
This means that q = 3 Mod (p1). Which is a very poor choice of q tightly tied to p.
Even if you can solve it, it is of no practical interest. In ciphers, p and q will never be chosen like that.