Given coprime positive integers x, y, the set of positive integers that cannot be represented as ax + by for some nonnegative integers a, b is called the set of gaps of a numerical semigroup with two generators x and y. The number of elements in the set of gaps is called the genus of the semigroup. In the case of two generators x and y, the genus equals (x − 1)(y − 1) / 2.