(n: bigint, k: bigint)
| 981 | const a0 = toBigint(aOp); |
| 982 | const n = toBigint(nOp); |
| 983 | if (a0 === null || n === null || n < 1n) return undefined; |
| 984 | if (n === 1n) return ce.number(1); |
| 985 | const a = ((a0 % n) + n) % n; |
| 986 | if (gcd(a, n) !== 1n) return undefined; |
| 987 | // The order divides λ(n); the smallest such divisor is the order. |
| 988 | for (const d of divisorsAscending( |
| 989 | carmichaelLambda(n, ce._deadlineFrame), |
| 990 | ce._deadlineFrame |
| 991 | )) { |
no test coverage detected