In mathematics, for given real numbers and , the logarithm is a number such that . The discrete logarithm generalizes this concept to a cyclic group. A simple example is the group of integers modulo a prime number under modular multiplication of nonzero elements.