Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

solve_congruence function

Solve a congruence for a variable.

How to write it

solve_congruence(equation, x, m)

equation
The congruence to solve. Takes an equation.
x
The variable to solve for. Takes a variable.
m
The modulus. Takes a whole number.

Examples

  • solve_congruence⁡(3x=1,x,7)⇒[x=5+7C1]\displaystyle \operatorname{solve\_congruence}(3 x = 1, x, 7) \Rightarrow \left[ x = 5+7 C_{1} \right]
    solve_congruence(3 x = 1, x, 7)

    In the solver, solve_congruence(3 x = 1, x, 7) gives [x = 5 + 7C(1)].

    Open in the solver
  • squares_r

    How many ways a whole number is a sum of a given count of squares, counting order and signs.

  • primitive_root

    A primitive root of a prime: a number whose powers cover all the nonzero residues.

  • stirling_s1

    Stirling number of the first kind, with sign.

  • prime_pi

    How many primes are at most a number.

  • stirling_s2

    Stirling number of the second kind: the ways to split n items into k groups.

  • prime_omega

    How many primes divide a whole number, counted with multiplicity.