Working With Roots You Never Find
For , the are the elementary symmetric functions of the roots, and the power sums obey .
So always ( for , whose roots are complex), and any symmetric expression in the roots is a polynomial in the coefficients. The reverse direction — given , recover and hence the roots — solves systems like , , .
if , else . Hence .
The filter extracts every th coefficient of a polynomial (or generating function): the number of subsets of with size divisible by , the sum of , the coefficient sums of at spacing . Also gives and the trig products .
For : . Lagrange: the degree- polynomial through points is . Finite differences: a degree- polynomial has constant th differences.
The divisibility fact kills "find an integer polynomial with , " (). Interpolation with consecutive integer nodes is fastest by finite differences ( gives second difference , so ). Chebyshev polynomials handle "polynomial bounded by on " extremal problems.
To find , do not divide: write and plug in the roots of the divisor to get two equations for . For a repeated root, differentiate first. Remainders modulo a polynomial are found by evaluating, never by long division.
Real satisfy and . Find .
: , so — and indeed .
Proofs & Why It Matters
, and in general .
— rearrange. For the general identity, expand , take the logarithmic derivative, and compare coefficients of with . Significance: the generating-function proof is a template — many Putnam identities are "compare coefficients after a log-derivative."
For and : .
, and the inner average is when (every term is ) and otherwise (a geometric series with ratio summing to ). Significance: this is the discrete Fourier transform in its simplest form; shifting by picks out the residue class . It is how one counts subsets by size mod — a Putnam favorite.
Going Deeper: Worked Problems
How many subsets of a -element set have size divisible by ?
Step 1 — the answer is , the filter applied to .
Step 2 — with : ; , so ; similarly .
Step 3 — .
Step 4 — total . Check: ✓.
A polynomial of degree satisfies for . Find .
Step 1 — consider , degree , vanishing at : so .
Step 2 — evaluate at : , giving .
Step 3 — at : , so and — equal to for odd and for even . The auxiliary polynomial with known roots is THE technique for "values at consecutive integers."
Formulas, Proofs & Tips
What it means. Multiplying a sum multiplies each piece of it.
Example. .
Why it works. is added times. Regrouping those copies gives added times plus added times, i.e. . It is also the area of an rectangle split into two.
Tip. Distribute the sign too: . Run it backwards to factor.
What it means. The highest-power term decides what the graph does far left and far right.
Example. rises to the left and falls to the right (odd degree, negative lead).
Why it works. For very large , dwarfs every lower power, so the leading term dominates the sum. Multiplying polynomials multiplies their leading terms, adding the exponents.
Tip. Even degree: both ends go the same way. Odd degree: opposite ways. A positive leading coefficient sends the right end up.