next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

modularPower -- Compute the modular power.

Synopsis

Description

Computes the b-th power of a in ℤ/pℤ. This function is here to also deal with large p.

i1 : modularPower(8,10003,101)

o1 = 7

Ways to use modularPower :

  • modularPower(ZZ,ZZ,ZZ)