next | previous | forward | backward | up | top | index | toc | Macaulay2 website
TestIdeals :: multiplicativeOrder

multiplicativeOrder -- multiplicative order of an integer modulo another

Synopsis

Description

multiplicativeOrder(a,b) computes the multiplicative order of $a$ modulo $b$.

i1 : multiplicativeOrder(2, 11^2)

o1 = 110
i2 : multiplicativeOrder(3, 11^2)

o2 = 5
i3 : multiplicativeOrder(4, 11^2)

o3 = 55

If $a$ and $b$ are not relatively prime, multiplicativeOrder(a, b) returns an error.

Ways to use multiplicativeOrder :

For the programmer

The object multiplicativeOrder is a method function.