Method of successive substitution

Method of successive substitution

In modular arithmetic, the method of successive substitution is a method of solving problems of simultaneous congruences by using the definition of the congruence equation. It is commonly applied in cases where the conditions of the Chinese remainder theorem are not satisfied.

There is also an unrelated method of successive substitution, a randomized algorithm used for root finding, not currently discussed here.[1]

Example

For example, consider the simple set of simultaneous congruences

x ≡ 3 (mod 4)
x ≡ 5 (mod 6)

Now, for x ≡ 3 (mod 4) to be true, x = 3 + 4j for some integer j. Substitute this in the second equation

3+4j ≡ 5 (mod 6)

since we are looking for a solution to both equations.

Subtract 3 from both sides (this is permitted in modular arithmetic)

4j ≡ 2 (mod 6)

We simplify by dividing by the greatest common divisor of 4,2 and 6. Division by 2 yields:

2j ≡ 1 (mod 3)

The Euclidean modular multiplicative inverse of 2 mod 3 is 2. After multiplying both sides with the inverse, we obtain:

j ≡ 2 × 1 (mod 3)

or

j ≡ 2 (mod 3)

For the above to be true: j = 2 + 3k for some integer k. Now substitute back into 3 + 4j and we obtain

x = 3 + 4(2 + 3k)

Expand:

x = 11 + 12k

to obtain the solution

x ≡ 11 (mod 12)

General algorithm

In general:

  • write the first equation in its equivalent form
  • substitute it into the next
  • continue until the last equation
  • back substitute, then simplify
  • rewrite back in the congruence form

If the moduli are coprime, the Chinese remainder theorem gives a straightforward formula to obtain the solution.

See also

http://en.wikibooks.org/wiki/Discrete_Mathematics/Modular_arithmetic


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Substitution cipher — In cryptography, a substitution cipher is a method of encryption by which units of plaintext are replaced with ciphertext according to a regular system; the units may be single letters (the most common), pairs of letters, triplets of letters,… …   Wikipedia

  • Simultaneous equations — In mathematics simultaneous equations are a set of equations containing multiple variables. This set is often referred to as a system of equations. To solve simultaneous equations, the solver needs to use the provided equations to find the exact… …   Wikipedia

  • List of mathematics-based methods — This is a list of mathematics based methods, by Wikipedia page.See also list of graphical methods.*Adams method (differential equations) *Akra Bazzi method (asymptotic analysis) *Condorcet method (voting systems) *Coombs method (voting systems)… …   Wikipedia

  • List of mathematics articles (M) — NOTOC M M estimator M group M matrix M separation M set M. C. Escher s legacy M. Riesz extension theorem M/M/1 model Maass wave form Mac Lane s planarity criterion Macaulay brackets Macbeath surface MacCormack method Macdonald polynomial Machin… …   Wikipedia

  • Chinese remainder theorem — The Chinese remainder theorem is a result about congruences in number theory and its generalizations in abstract algebra. In its most basic form it concerned with determining n, given the remainders generated by division of n by several numbers.… …   Wikipedia

  • List of number theory topics — This is a list of number theory topics, by Wikipedia page. See also List of recreational number theory topics Topics in cryptography Contents 1 Factors 2 Fractions 3 Modular arithmetic …   Wikipedia

  • Continuous-repayment mortgage — Analogous to continuous compounding, a continuous annuity[1][2] is an ordinary annuity in which the payment interval is narrowed indefinitely. A (theoretical) continuous repayment mortgage is a mortgage loan paid by means of a continuous annuity …   Wikipedia

  • Chemical equilibrium — In a chemical reaction, chemical equilibrium is the state in which the concentrations of the reactants and products have not yet changed with time. It occurs only in reversible reactions, and not in irreversible reactions. Usually, this state… …   Wikipedia

  • Lambert W function — The graph of W(x) for W > −4 and x < 6. The upper branch with W ≥ −1 is the function W0 (principal branch), the lower branch with W ≤ −1 is the function W−1. In mathematics, the Lambert W function, also called the Omega function or product… …   Wikipedia

  • Michael reaction — The Michael reaction or Michael addition is the nucleophilic addition of a carbanion or another nucleophile[1][2][3] to an alpha, beta unsaturated carbonyl compound. It belongs to the larger class of conjugate additions. This is one of the most… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”