Skip to content

A.6 · Congruences, divisibility and arithmetic functions

GRE · GRE Subject Test · GRE Mathematics · Topic 12

Train
12

Scope and prerequisites

Undergraduate GRE preparation. Local objectives within the reviewed ETS scope; this is original teaching, not an official test or score predictor.

Prerequisites: Euclidean algorithm, prime factors and modular arithmetic.

  • Solve linear congruences using gcd conditions
  • Combine coprime congruences with the Chinese remainder theorem
  • Apply Euler's theorem only to invertible residues
  • Use prime-exponent divisibility to find least admissible integers

congruence 同余: Equality of residues because the modulus divides their difference.

totient 欧拉函数: The count of residues coprime to the positive integer modulus.

Vocabulary Train
English
congruence/ˈkɒŋɡruːəns/
totient/ˈtəʊʃənt/
12

Choose and justify a method

The equation ax≡b modulo n has a solution exactly when d=gcd(a,n) divides b. If it does, divide a,b,n by d to obtain an equation with an invertible coefficient. It has one residue solution modulo n/d and d distinct solutions modulo n. Dividing the coefficient but leaving the original modulus generally loses solutions. Prime factorisation gives another divisibility tool: if n^k must be divisible by a product of prime powers p^a, each prime exponent in n must be at least ceil(a/k). These minimum exponents independently produce the least positive admissible n. For n⁴ divisible by 2⁷·3⁵, n must contain 2² and 3², so the least value is 36. This is a prime-exponent condition, not a congruence solved by modular division.

The extended Euclidean algorithm expresses gcd(a,n) as ua+vn. When the gcd is 1, u is an inverse of a modulo n. Choose a representative in the required range after reduction. For 7 and 26, 1=15·7−4·26, so 15 is the inverse of 7 modulo 26; verify the product to catch a sign error.

For coprime positive moduli m,n, the Chinese remainder theorem gives exactly one solution modulo mn for each pair of residue conditions. Substitute x=r+mk into the second congruence and solve for k. If the moduli are not coprime, their residue values must agree modulo gcd(m,n); when consistent, uniqueness is modulo the least common multiple, not the product.

Euler's totient phi(n) counts residues coprime to n. For distinct prime divisors p, phi(n)=n times the product of (1−1/p). Euler's theorem gives a^phi(n)≡1 only when gcd(a,n)=1. The prime case is Fermat's little theorem. Reduce exponents only after checking this condition; a nonunit can become zero under repeated powers instead.

12

Worked reasoning

Solve 6x≡9 modulo 15. The gcd is 3 and divides 9. Divide all three quantities to get 2x≡3 modulo 5; the inverse of 2 is 3, so x≡9≡4 modulo 5. The original solutions modulo 15 are 4,9,14. For x≡2 modulo 4 and x≡3 modulo 7, write x=2+4k; then 4k≡1 modulo 7, giving k≡2. Hence x≡10 modulo 28.

Congruences, divisibility and arithmetic functions: course example
Original course illustration; its values belong to the worked example, not the later practice.
12

Conditions and counterexamples

The expression a^phi(n)≡1 is false for arbitrary a. For example 2 is not invertible modulo 8 and 2^4 is zero modulo 8.

12

Guided application

Solve $8x\equiv12\pmod{20}$ completely. Find an inverse of 7 modulo 20. Explain why Euler's theorem cannot be used to replace $2^8$ by 1 modulo 20.

Worked solution

The gcd is four and divides 12. Dividing all three numbers gives $2x\equiv3\pmod5$, so $x\equiv4\pmod5$. Modulo 20 the four answers are $4,9,14,19$; substitution gives remainder 12 each time. Since $7\cdot3=21$, the inverse of 7 is 3. Although $\phi(20)=8$, Euler's theorem requires a unit. The gcd of 2 and 20 is two, and $2^8=256\equiv16$, not 1.

12

Independent transfer

Solve $x\equiv2\pmod6$, $x\equiv5\pmod9$, or prove inconsistency. State the modulus for uniqueness. Find the least positive n such that $2^5\cdot3^7$ divides $n^3$.

Check after attempting

The residues agree modulo the gcd three. Put $x=2+6k$: then $6k\equiv3\pmod9$, hence $2k\equiv1\pmod3$ and $k\equiv2\pmod3$. Thus $x\equiv14\pmod{18}$. The modulus is the lcm, not 54. For the divisibility problem, write prime exponents in n. They must satisfy $3a\ge5$, $3b\ge7$, so $a\ge2$, $b\ge3$. The least n is $2^2\cdot3^3=108$; other prime factors can only increase it.

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in GRE · GRE Subject Test · GRE Mathematics

Log in or create account

IGCSE, A-Level & AP