The math that contest problems assume without naming it. Each fact is short; the skill is noticing which one applies.

Floor, ceiling and division

long long floorDiv(long long a, long long b) { return a / b - ((a % b != 0) && ((a < 0) != (b < 0))); }
long long ceilDiv(long long a, long long b) { return a / b + ((a % b != 0) && ((a < 0) == (b < 0))); }
long long modFloor(long long a, long long m) { return ((a % m) + m) % m; }      // m > 0, result in [0, m)
IdentityCondition
,
,
real
, with
takes at most distinct valuessee Floor Sums
divisor counting

Inequalities

InequalityStatementEquality
AM–GM for all equal
Cauchy–Schwarzproportional vectors
rearrangement is maximal when both are sorted the same way—
Jensen for convex all equal or linear
triangle$a + b
Bernoulli for , or
harmonic bound—

Sums and sequences

SumClosed form
, , , ,
geometric (); modulo use an inverse or a doubling recursion
for $
telescoping ; e.g.
arithmetic progression mod period
linear recurrencecharacteristic roots, matrix power (Matrix Power)

Modular and counting observations

ObservationUse
squares are and (odd squares )impossibility of sums of squares
digit sum digit problems
; for Fermat-style simplifications
pigeonhole on prefix sums mod some subarray sum divisible by
double countingcount pairs (element, set) both ways
stars and bars distribute identical items
bijectionscount an easier set of the same size

More: Modular Arithmetic, Counting Fundamentals, Invariants.