discrete_log function
The exponent that takes a base to a value modulo a number.
How to write it
discrete_log(base, value, m)
- base
- The base. Takes a whole number.
- value
- The value to reach. Takes a whole number.
- m
- The modulus. Takes a whole number.
Examples
discrete_log(2, 8, 11)In the solver,
Open in the solverdiscrete_log(2, 8, 11)gives3.
Related functions
- divisor_count
How many positive divisors a whole number has.
- convergents
The convergents of a continued fraction.
- divisor_sigma
Sum of the powers of the divisors of a whole number.
- continued_fraction
The continued fraction of a rational number, as a list.
- divisor_sum
Sum of the positive divisors of a whole number.
- chinese_remainder
The number that leaves given remainders on division by given moduli.