Linear Congruence Solver

Solve equations of the form $$ax \equiv b \pmod{m}$$ with ease.

Solution

Solutions for $$ {${a}}x \equiv {${b}} \pmod{${m}} $$:

Understanding Linear Congruence

A linear congruence is a congruence relation of the form $$ax \equiv b \pmod{m}$$, where a, b, and m are integers, and x is a variable. Solving a linear congruence means finding all integer values of x that satisfy this relation.

Key Concepts:

Formula for Solutions: If a solution exists, and $$d = gcd(a, m)$$, then the solutions are given by: $$ x \equiv x_0 + k \cdot rac{m}{d} \pmod{m} $$ where $$x_0$$ is a particular solution, and $$k = 0, 1, 2, ..., d-1$$.

This tool helps you quickly find these solutions. Enter the coefficients a, b, and the modulus m to get the results.

Learn more about linear congruence at Wikipedia.