Multiplicative order: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: made it run on 32 bit and hence pwa/p2js)
Line 1,437: Line 1,437:
100</lang>
100</lang>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
In Mathematica this is really easy, as this function is built-in:
In Mathematica this is really easy, as this function is built-in:
MultiplicativeOrder[k,n] gives the multiplicative order of k modulo n, defined as the smallest integer m such that k^m == 1 mod n.<br>
MultiplicativeOrder[k,n] gives the multiplicative order of k modulo n, defined as the smallest integer m such that k^m == 1 mod n.<br>