Proof-Level Number Theory
The order of mod divides every with , hence divides . Compute orders mod composites prime-power by prime-power and take the lcm.
Last two digits of : the order of mod is , and , so . Mod () the equation has FOUR solutions, so has — a standard trap. Primitive roots exist exactly mod .
; is the number of carries adding in base ; for odd .
. is the number of -bits of . LTE: (the form for odd ). Valuations turn "largest power dividing" into arithmetic, and they are the language of most Putnam number theory write-ups.
, , are multiplicative: compute on prime powers and multiply. ; .
Sums over divisors are attacked by swapping the order of summation: . Möbius inversion recovers from . Quadratic residues: , iff , and reciprocity for the rest.
Factor (SFFT: becomes ); bound (compare growth rates, squeeze between consecutive squares); take mod a small number (squares are , cubes ); descend (Vieta jumping, infinite descent). Nearly every Putnam Diophantine problem yields to one of these four, and knowing which to try first is a matter of pattern practice.
Find the largest such that divides .
Kummer: count carries adding in base . ; doubling a binary number produces one carry per -bit, and has three -bits: . (Legendre confirms: .)
Proofs & Why It Matters
For odd prime with and : .
Two lemmas. (i) If then : since and the sum is . (ii) : write and expand binomially — the terms beyond the first two carry extra factors of , and the term supplies exactly one more (this is where odd is used). Induct on , peeling off one factor of at a time with (ii) and finishing with (i). Significance: LTE is the exact accounting of how a prime divides a difference of powers — it replaces pages of casework in olympiad and Putnam solutions alike.
A one-line counting proof of a multiplicative identity.
Sort the fractions by their reduced denominator (a divisor of ). Exactly of them reduce to denominator (the numerators coprime to ). Summing over counts all fractions. Significance: the argument proves more — that the multiplicative group mod is cyclic (count elements by order, compare with ), i.e. primitive roots exist.
Going Deeper: Worked Problems
Find the order of modulo .
Step 1 — ; the order mod is the lcm of the orders mod and mod .
Step 2 — mod : , order .
Step 3 — mod : , so the order divides ; test the maximal proper divisors and . — compute: , , ; , and , , . So the order mod is .
Step 4 — . The method: never search; use to list candidates and test only the maximal proper divisors.
Find all positive integers such that is a perfect square.
Step 1 — squeeze between consecutive squares: for , and iff .
Step 2 — so for the expression lies strictly between two consecutive squares: never a square.
Step 3 — check : ✓. Answer: only . Bounding by neighboring squares (or cubes) is the first thing to try on "when is this polynomial a perfect power."