Orders and Primitive Roots
If then , and . Hence every prime divisor of with for satisfies . A primitive root mod makes every nonzero residue a power , turning multiplicative questions into questions about exponents mod .
The olympiad move: from "" deduce "", intersect with "", and get ; since for odd , and share a prime factor. This single argument shows only for : take the least prime ; then divides both and , hence is , so .
For odd prime with : . For and even: .
LTE answers "exactly which power of divides " in one line, replacing pages of induction. It is the tool for exponential Diophantine equations: compare the -adic valuation of both sides and the equation collapses to a small inequality in .
Show is a power of only for and . Suppose with . Mod , , and , so is even. Then is a product of two powers of differing by : they must be and , so , , . With : . No others.
Quadratic Residues and Size Arguments
is a square mod iff ; is a square iff ; iff . So a prime dividing is or ; a prime dividing is or . Quadratic reciprocity: for odd primes , .
These facts prove impossibility and produce infinitely-many-primes theorems: infinitely many primes , because has a prime factor larger than and every such factor is . In an equation, look for a factor of the form and ask which primes may divide it.
If then is not a square. To show is never a perfect square, find with for all large , then check the small cases by hand.
Size arguments finish what residues start. " is a square" — it sits strictly between and for every (the gaps are and ), so no. The same logic for cubes and for "the product of two consecutive integers is never a perfect power". Write the two bounding expressions explicitly and verify the strict inequalities with the actual difference.
Using LTE without checking (it is a hypothesis, not a conclusion), and applying the case for odd .
Show that is never a perfect square for .
Show the answerHide the answer
for (the right inequality is ). Strictly between consecutive squares.
Primitive Roots in Use
Let be prime and a primitive root mod . For and put . Then has exactly solutions if , and none otherwise; there are nonzero -th power residues. Also
Every nonzero residue is a power of , and exactly when , so multiplication mod becomes addition of exponents mod . With and , the congruence becomes the linear congruence , which is solvable exactly when , and then has solutions mod . The condition is the same as . For the power sums, as runs over the nonzero residues, and the sum is the geometric series : it is if , i.e. , and otherwise. The clock shows the exponent picture for , .
Which residues mod are cubes? Solve . What changes mod ? (folklore)
Step 1 — is a primitive root mod : its powers are , all twelve nonzero residues.
Step 2 — gives , and is a multiple of , so the nonzero cubes are : there are of them.
Step 3 — , so with , i.e. : , giving . Check: . Three solutions, as predicts.
Step 4 — mod , : cubing is a bijection, so every residue is a cube and each has exactly one cube root.
How to find it. Power questions mod are linear questions about exponents mod ; the only number that matters is .
Find the remainder of modulo .
Step 1 — is prime and the sum runs over all nonzero residues, so the power-sum formula applies with .
Step 2 — does not divide (), so the sum is .
Step 3 — the mechanism, concretely: multiplying every term by for a primitive root only permutes the terms (as runs over residues so does ), so the sum satisfies ; and because the order of is . Hence . The remainder is .
How to find it. A sum over a complete set of nonzero residues is invariant under multiplication by any unit — the "multiply by " trick is the whole proof.
Let be prime. Prove that the numerator of , in lowest terms, is divisible by . (Wolstenholme, 1862)
Step 1 — pair with : , so , where is the harmonic sum. The denominators are prime to , so it suffices to show , computing with inverses mod .
Step 2 — mod , , so the sum is .
Step 3 — as runs over the nonzero residues so does , so , which is divisible by because does not divide . (This is the power-sum formula with and .)
Step 4 — so , and since is odd, divides the numerator of . Check: gives and gives .
How to find it. Harmonic sums mod become sums of inverses, which are sums of powers in disguise; pairing with extracts the first factor of , and the power-sum formula supplies the second.
Tempting: " has solutions, namely ." In fact — four solutions.
The count comes from writing every unit as a power of a primitive root, and there is no primitive root mod : every unit has order or , so the unit group is not cyclic. Primitive roots exist only mod and for odd primes . Modulo a composite without one, split with the Chinese remainder theorem and count modulo each prime power separately; mod with the units form rather than a cycle.
How many solutions does have? And ? Find the solutions of the second.
Show the answerHide the answer
Here , so is solvable iff , i.e. . Since , the first has no solutions. For the second, and , so there are exactly solutions. By Euler's criterion exactly when is a quadratic non-residue mod ; the residues are , so the solutions are the non-residues .
Quadratic Residues in Diophantine Equations
If a prime divides , then is a quadratic residue mod . In particular:
- every odd prime factor of is ;
- every odd prime factor of is , and of is ;
- a positive integer has a prime factor (a product of primes is ).
Combining the first and last: has no divisor , .
means , and (else ), so is a nonzero square mod . The supplements and turn that into congruence conditions on . The third item is multiplicativity mod . The pattern in equations: rearrange so that one side is and the other has a factor (or another forbidden class), and the equation is impossible. The main work is finding the factor, since a factor that is only for some values of the variable does not suffice.
Prove that has no solution with positive integers and an integer. (Euler)
Step 1 — multiply by and add : , so the equation becomes .
Step 2 — and , so it has a prime factor .
Step 3 — divides , so is a quadratic residue mod , impossible for .
How to find it. Simon's trick in its "multiply by " form produces , and the right side becomes a square plus one. Once one side is and the other contains a factor , the first supplement ends the problem.
Let be odd. Prove that every prime factor of is or . (folklore)
Step 1 — let ; is odd. Since is odd, , so with .
Step 2 — multiply by : , so is a quadratic residue mod .
Step 3 — exactly when or (both factors for , both for ). Examples: and , with .
How to find it. An odd power of is twice a square; that single observation converts divisibility into a residue statement about .
Prove that has no integer solutions. (Lebesgue, 1869)
Step 1 — if is even, , not a square (squares are ). So is odd.
Step 2 — add : .
Step 3 — . With odd, , so this factor is , and it is positive. It therefore has a prime factor .
Step 4 — divides , impossible by the first supplement. No solutions.
How to find it. : adding to both sides makes the left a sum of two squares and the right a sum of two cubes, which factors. Then look for the factor whose residue mod is forced for every odd .
In , tempting: " is odd, so is odd; it is and has a prime factor ."
only when . For , , and can perfectly well divide (take ). The argument has proved nothing for half of the odd . The factor to use is the one whose residue is forced for every odd : . Check the claimed congruence on a sample value from each residue class before building on it.
Prove that has no integer solutions. (Balkan MO 1998)
Show the answerHide the answer
Work mod , where fifth powers are very restricted: for , , so ; hence and . The squares mod are , which contain none of . So no integers satisfy the equation.