# 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

- $\displaystyle \operatorname{discrete\_log}(2, 8, 11) = 3$

  `discrete_log(2, 8, 11)`

  In the solver, `discrete_log(2, 8, 11)` gives `3`.

  [Open in the solver](https://hilberon.com/?q=discrete_log%282%2C%208%2C%2011%29)

## Related functions

- [divisor_count](https://hilberon.com/library/divisor_count)

  How many positive divisors a whole number has.
- [convergents](https://hilberon.com/library/convergents)

  The convergents of a continued fraction.
- [divisor_sigma](https://hilberon.com/library/divisor_sigma)

  Sum of the powers of the divisors of a whole number.
- [continued_fraction](https://hilberon.com/library/continued_fraction)

  The continued fraction of a rational number, as a list.
- [divisor_sum](https://hilberon.com/library/divisor_sum)

  Sum of the positive divisors of a whole number.
- [chinese_remainder](https://hilberon.com/library/chinese_remainder)

  The number that leaves given remainders on division by given moduli.

---
Source: https://hilberon.com/library/discrete_log
