Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Perhaps, the easiest way is to use pari.ispower():

pari.ispower(Mod(n,q), b)