Nirmion
Pomoc Znajdź narzędzie

MODULAR ARITHMETIC / ELEMENT ORDER

Multiplicative Order Modulo Calculator

Find the least positive exponent that sends a coprime base to residue one modulo m.

  • 01 Calculated in this tab
  • 02 Values stay in this browser tab
  • 03 Use boundary

Conversion input

Known value

Filter by unit name, symbol, or code. Your current selections remain available.

Preparing the calculator...

METHOD / WORKED EXAMPLE

Verify Multiplicative Order Modulo from its integer structure

Find the least positive exponent that sends a coprime base to residue one modulo m. The page exposes the recurrence, factorization, or residue evidence used to obtain the bounded exact result.

WORKED DEFAULT

Check the calculation with the default inputs

For base 2 modulo 9, residues return to one at exponent 6, so ord_9(2) = 6.

  1. Check coprimalitygcd(2,9) = 1
  2. Advance residues2, 4, 8, 7, 5, 1
  3. Read first returnOrder = 6

READ THE RESULT

Interpret the output in context

The order describes the cycle length of one invertible residue, not the universal cycle length of every residue.

ASSUMPTIONS AND LIMITS

Know where the model stops

  • The base and modulus are coprime integers.
  • The modulus is at most one million for bounded iteration.

This educational repeated-product implementation is bounded and is not a discrete-logarithm solver or cryptographic primitive.

COMMON QUESTIONS

Multiplicative Order Modulo Calculator FAQs

Which definition does Multiplicative Order Modulo Calculator use?

Validate coprimality, normalize the base, and iterate exact modular products up to the Carmichael bound until residue one first appears. If gcd(a,m) exceeds one, a is not a unit and this multiplicative order is undefined. Inputs must be whole numbers inside the displayed safe bound. The calculator does not round decimals into the domain or silently substitute a different convention, so verify each entered integer before interpreting the exact result.

How can I check the Multiplicative Order Modulo result?

The order describes the cycle length of one invertible residue, not the universal cycle length of every residue. Computing a^order modulo m must return one, while every smaller positive exponent must fail that test. Use the displayed factors, recurrence step, or modular residue as an independent check. Exact integer output means the implemented arithmetic has no decimal approximation within its bound; it does not prove an unrelated theorem or an unstated combinatorial model.

Why does this calculator impose a finite bound?

This educational repeated-product implementation is bounded and is not a discrete-logarithm solver or cryptographic primitive. Large-modulus order finding generally uses factorization and stronger algorithms rather than an unrestricted linear search. The bound keeps browser work predictable and every returned integer within JavaScript's exact safe range. Larger inputs need arbitrary-precision software, explicit resource controls, and independent verification rather than treating an overflowed floating-point value as exact.

Use boundary

Calculation path

Validate coprimality, normalize the base, and iterate exact modular products up to the Carmichael bound until residue one first appears. The workspace preserves the bounded integer method and verification evidence beside the result.

Calculation path

ord_m(a) = least k > 0 such that a^k is congruent to 1 mod m.