Follow your curiosity

What discovery has been shared with you?

FACTREE gives you something interesting to discover every day — and something worth talking about together.

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Generating Functions for Solving Combinatorial Counting Problems

Quick fact

The generating function for the sequence 1, 2, 3, 4, ... is 1/(1-x)^2, and extracting the coefficient of x^n immediately gives n+1 — a result that would otherwise require summing a series of natural numbers.

Why this is interesting

You've probably seen how polynomials like (1+x)^n can be expanded, but did you know they hide a powerful secret for counting? By turning a counting problem into a polynomial or infinite series, you can use algebra to solve it, even when the answer would otherwise be a tangled mess of recurrences.