PrevNext

Overview

Proof-based number theory needs clear structure. Combine modular arithmetic with factorization and bounding.

Key Ideas

  • Use order arguments to prove divisibility claims.
  • LTE and lifting are powerful for expressions like an−bna^n-b^n.
  • Check small primes for contradictions.

Warm-Up Examples

Example 1: Legendre's Formula (must know!)

Your job is to find the number of zeros at the end of 100!100!.

Realize that this is just finding the power of 1010 dividing 100!100!, which is given by min⁡(v2(100!),v5(100!))\min(v_2(100!), v_5(100!)). Since v5(n!)<v2(n!)v_5(n!) < v_2(n!), we compute v5(100!)=100−S5(100)5−1v_5(100!) = \frac{100 - S_5(100)}{5 - 1}. The base 55 representation of 100100 is 4005400_5, so S5(100)=4+0+0=4S_5(100) = 4 + 0 + 0 = 4, which gives our answer of v5(100!)=100−44=24v_5(100!) = \frac{100 - 4}{4} = 24.

Example 2: A Very Skibidi Problem

Your goal is to prove that the binomial coefficient (2nn)\binom{2n}{n} is even for all positive integers nn.

We can look at the 22-adic valuation using Legendre's Formula: v2((2nn))=v2((2n)!)−2v2(n!)v_2\left(\binom{2n}{n}\right) = v_2((2n)!) - 2v_2(n!). Substituting the formula yields 2n−S2(2n)2−1−2n−S2(n)2−1=2n−S2(2n)−2n+2S2(n)\frac{2n - S_2(2n)}{2-1} - 2\frac{n - S_2(n)}{2-1} = 2n - S_2(2n) - 2n + 2S_2(n). Now, realize that shifting a binary number left does not change its digit sum, S2(2n)=S2(n)S_2(2n) = S_2(n), which simplifies the expression to S2(n)≥1S_2(n) \ge 1.

Example 3: Valuation Inequality Problem

Let aa and bb be positive integers such that vp(a)≠vp(b)v_p(a) \neq v_p(b). Your goals is to prove that vp(a+b)=min⁡(vp(a),vp(b))v_p(a + b) = \min(v_p(a), v_p(b)). (worth remembering!)

We can assume WLOG that vp(a)<vp(b)v_p(a) < v_p(b), and let vp(a)=kv_p(a) = k. Next, we can write a=pk⋅ma = p^k \cdot m and b=pk⋅pvp(b)−k⋅nb = p^k \cdot p^{v_p(b)-k} \cdot n where gcd⁡(m,p)=1\gcd(m, p) = 1. Factoring gives us a+b=pk(m+pvp(b)−kn)a + b = p^k(m + p^{v_p(b)-k}n), and since vp(b)−k>0v_p(b) - k > 0, the term (m+pvp(b)−kn)≢0(modp)(m + p^{v_p(b)-k}n) \not\equiv 0 \pmod p, proving vp(a+b)=kv_p(a+b) = k.

Example 4: Greatest Common Divisor Product

Your job is to prove that gcd⁡(a,b)⋅lcm(a,b)=a⋅b\gcd(a, b) \cdot \text{lcm}(a, b) = a \cdot b for any positive integers aa and bb.

Firstly, we can turn this identity into pp-adic valuations for a prime pp. Hence, we must verify vp(gcd⁡(a,b))+vp(lcm(a,b))=vp(a)+vp(b)v_p(\gcd(a, b)) + v_p(\text{lcm}(a, b)) = v_p(a) + v_p(b). Using basic properties of valuations, we get vp(gcd⁡(a,b))=min⁡(vp(a),vp(b))v_p(\gcd(a, b)) = \min(v_p(a), v_p(b)) and vp(lcm(a,b))=max⁡(vp(a),vp(b))v_p(\text{lcm}(a, b)) = \max(v_p(a), v_p(b)), and the equation simply becomes min⁡(x,y)+max⁡(x,y)=x+y\min(x, y) + \max(x, y) = x + y.

Example 5: Divisibility of Factorials

Your goal is to find all positive integers nn such that 2n−12^{n-1} divides n!n!.

First, realize that this problem statement can be turned into the inequality v2(n!)≥n−1v_2(n!) \ge n - 1. From here, using Legendre's Formula, this constraint simply becomes n−S2(n)2−1≥n−1\frac{n - S_2(n)}{2 - 1} \ge n - 1, which simplifies directly to n−S2(n)≥n−1n - S_2(n) \ge n - 1. Rearranging the terms gives us S2(n)≤1S_2(n) \le 1, which means that nn must be a pure power of 22 (n=2kn = 2^k for k≥0k \ge 0). (neat result, eh?)

Practice Problems

StatusSourceProblem NameDifficultyTags
USAMOInsane
Show TagsNumber Theory, Orders
USAMOVery Hard
Show TagsNumber Theory
Berkeley Math CircleHard
Show TagsInfinite descent / root flipping, Techniques: modulo, size analysis, order analysis, inequalities
Berkeley Math CircleHard
Show TagsInfinite descent / root flipping, Pell's equations, Quadratic fields
Berkeley Math Circle Monthly Contest 2Hard
Show TagsComplex numbers, Infinite descent / root flipping, Techniques: modulo, size analysis, order analysis, inequalities
BAMOHard
Show TagsGreatest common divisors (gcd), Infinite descent / root flipping, Linear and quadratic inequalities, Recurrence relations
Berkeley Math CircleHard
Show TagsCartesian coordinates, Infinite descent / root flipping, Techniques: modulo, size analysis, order analysis, inequalities
USA IMOHard
Show TagsGreatest common divisors (gcd), Infinite descent / root flipping, Pell's equations, Recurrence relations, Techniques: modulo, size analysis, order analysis, inequalities
Harvard-MIT Mathematics TournamentHard
Show TagsFactorization techniques, Infinite descent / root flipping, Polynomial operations, Techniques: modulo, size analysis, order analysis, inequalities
IMOHard
Show TagsGreatest common divisors (gcd), Infinite descent / root flipping, Polynomial operations
Team Selection Test 2009Hard
Show TagsInfinite descent / root flipping, Techniques: modulo, size analysis, order analysis, inequalities, Vieta's formulas
Berkeley Math Circle: Monthly Contest 5Hard
Show TagsInfinite descent / root flipping, Vieta's formulas
February 2017Hard
Show TagsInfinite descent / root flipping, Quadratic functions, Techniques: modulo, size analysis, order analysis, inequalities
Berkeley Math CircleHard
Show TagsInfinite descent / root flipping, Invariants / monovariants
HMMT February 2019Hard
Show TagsFloors and ceilings, Infinite descent / root flipping, Recurrence relations, Telescoping series, Vieta's formulas
HMMT February 2020Hard
Show TagsQuadratic reciprocity, Quadratic residues
HMMT February 2020Hard
Show TagsPrime numbers, Quadratic forms, Quadratic reciprocity, Quadratic residues
HMMT February 2024Hard
Show TagsChinese remainder theorem, Polynomials, Polynomials mod p, Quadratic reciprocity, Quadratic residues, Vieta's formulas
HMMT February 2025Hard
Show TagsFermat / Euler / Wilson theorems, Injectivity / surjectivity, Polynomials mod p, Quadratic reciprocity, Quadratic residues, Recurrence relations
Berkeley Math CircleHard
Show TagsInfinite descent / root flipping, Pell's equations, Quadratic fields
USA IMOHard
Show TagsCyclic quadrilaterals, Greatest common divisors (gcd), Quadratic fields, Triangle trigonometry, Unique factorization
BAMOHard
Show TagsQuadratic fields, Recurrence relations, Techniques: modulo, size analysis, order analysis, inequalities
Berkeley Math Circle: Monthly Contest 5Hard
Show TagsOther, Prime numbers, Quadratic fields, Techniques: modulo, size analysis, order analysis, inequalities
HMMT February 2024Hard
Show TagsComplex numbers, Greatest common divisors (gcd), Polynomial interpolation: Newton, Lagrange, Quadratic fields, Quadratic residues, Unique factorization
TST2025Hard
Show TagsComplex numbers in geometry, Determinants, Quadratic fields, Quadratic residues, Techniques: modulo, size analysis, order analysis, inequalities

Module Progress:

Join the Discord Community!

Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.

PrevNext