Olympiad Number Theory

Study Sheet

Olympiad Number Theory

Orders, LTE, Vieta jumping, and valuations

The Proof-Level Toolkit

Tip
Orders and primitive roots

The order of aa mod nn divides φ(n)\varphi(n) and divides any kk with ak1a^k \equiv 1. Use CRT to compute orders mod composite numbers: ord1000(3)=lcm(ord8,ord125)=lcm(2,100)=100\mathrm{ord}_{1000}(3) = \mathrm{lcm}(\mathrm{ord}_8, \mathrm{ord}_{125}) = \mathrm{lcm}(2, 100) = 100. A primitive root exists mod pp, pkp^k, 2pk2p^k — and its existence converts multiplicative questions into additive ones on exponents.

Tip
Lifting the exponent

For odd prime pabp \mid a - b, pabp \nmid ab: vp(anbn)=vp(ab)+vp(n)v_p(a^n - b^n) = v_p(a - b) + v_p(n); for pa+bp \mid a + b and odd nn: vp(an+bn)=vp(a+b)+vp(n)v_p(a^n + b^n) = v_p(a + b) + v_p(n). The p=2p = 2 case adds v2(a+b)1v_2(a + b) - 1 for even nn. Example: v3(2243+1)=1+5=6v_3(2^{243} + 1) = 1 + 5 = 6. LTE turns "how many times does pp divide" into arithmetic.

Tip
Vieta jumping

For a symmetric quadratic Diophantine equation, take the solution with a+ba + b minimal; Vieta gives a second root a=kbaa' = kb - a that yields a smaller solution unless a boundary case holds — which then proves the required structure. The IMO 1988 classic: a2+b2ab+1=k\tfrac{a^2 + b^2}{ab + 1} = k forces kk to be a perfect square.

Reminder — Vieta's formulas:r1+r2=ba,r1r2=car_1+r_2=-\frac{b}{a},\qquad r_1 r_2=\frac{c}{a}
Example
Worked: SFFT on a unit-fraction equation

1x+1y=112\tfrac1x + \tfrac1y = \tfrac1{12} becomes (x12)(y12)=144(x - 12)(y - 12) = 144; positive solutions correspond to the τ(144)=15\tau(144) = 15 divisor pairs. Simon's Favorite Factoring Trick — add the constant that completes the product — is the first thing to try on any equation with an xyxy term.