Example Solutions for

Step-by-Step Discrete Mathematics


Learn how to find a GCD:

See step‐by‐step solutions for LCM:

Determine if two integers are coprime:

Count the number of positive integers not exceeding the given number that are coprime to it:

More examples

Primality Testing

Find step-by-step solutions for primality testing:

More examples

Integer factorization

Perform prime factorization one step at a time:

More examples


Find divisors step by step:

Learn how to find the number of divisors:

Follow the steps to find the sum of the divisors:

See step-by-step solutions for the divisor function:

More examples

Base Conversions

Follow the steps to convert between bases:

More examples