Mathympic

03 — Cheat sheets

Essential theorems, at a glance

Quick reference for the identities that show up again and again.

Algebra

Vieta's Formulas

For ax2+bx+c=0ax^2 + bx + c = 0 with roots r1,r2r_1, r_2:
r1+r2=−ba,r1r2=car_1 + r_2 = -\frac{b}{a},\qquad r_1r_2 = \frac{c}{a}

AM-GM Inequality

For non-negative reals a1,a2,…,ana_1, a_2, \ldots, a_n:
a1+a2+⋯+ann≥a1a2⋯ann\frac{a_1+a_2+\cdots+a_n}{n} \geq \sqrt[n]{a_1a_2\cdots a_n}

Number theory

Fermat's Little Theorem

If pp is prime and gcd⁡(a,p)=1\gcd(a,p)=1:
ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p

Euler's Totient

For n=p1e1p2e2⋯pkekn = p_1^{e_1}p_2^{e_2}\cdots p_k^{e_k}:
φ(n)=n∏i=1k(1−1pi)\varphi(n)=n\prod_{i=1}^{k}\left(1-\frac{1}{p_i}\right)

Geometry

Heron's Formula

For sides a,b,ca,b,c and s=a+b+c2s=\frac{a+b+c}{2}:
Area=s(s−a)(s−b)(s−c)\text{Area}=\sqrt{s(s-a)(s-b)(s-c)}

Power of a Point

For PP at distance dd from the center of a circle of radius RR, with a secant through A,BA,B:
PA⋅PB=∣d2−R2∣PA\cdot PB = \left|d^2-R^2\right|

Combinatorics

Stars and Bars

Ways to place nn identical items into kk bins:
(n+k−1k−1)\binom{n+k-1}{k-1}

Pigeonhole Principle

If nn items go into mm containers with n>mn>m:
∃ a container with at least ⌈nm⌉ items\exists\text{ a container with at least }\left\lceil\frac{n}{m}\right\rceil\text{ items}