On this page
If you know C(n, k), the number of ways to choose k things from n, you already know most of the q-binomial coefficient. It keeps the formula's shape but turns every number into a polynomial in q, and each power of q counts something.
What is a q-binomial (Gaussian) coefficient?
The Gaussian binomial coefficient, also called the q-binomial coefficient or Gaussian polynomial, is the q-analogue of the binomial coefficient, written [n choose k]_q (Wikipedia: Gaussian binomial coefficient).
Its formula: [n choose k]_q = (1 − q^n)(1 − q^(n−1))⋯(1 − q^(n−k+1)) divided by (1 − q)(1 − q²)⋯(1 − q^k), equation 26.9.4 in NIST's Digital Library of Mathematical Functions, which calls it the Gaussian polynomial.
Compare C(n, k) = n(n − 1)⋯(n − k + 1) divided by 1 · 2 ⋯ k. Each whole number m has become (1 − q^m)/(1 − q) = 1 + q + ⋯ + q^(m−1), the q-number [m]_q, and the k factors of (1 − q) on top and bottom cancel. The division is always exact, so the answer is a polynomial with whole-number coefficients (Wikipedia).
How do you work out [4 choose 2]_q by hand?
Write the formula: (1 − q⁴)(1 − q³) divided by (1 − q)(1 − q²).
Factor the top: 1 − q⁴ = (1 − q²)(1 + q²) and 1 − q³ = (1 − q)(1 + q + q²).
Cancel (1 − q²) and (1 − q), leaving (1 + q²)(1 + q + q²).
Multiply out: 1 + q + q² + q² + q³ + q⁴ = 1 + q + 2q² + q³ + q⁴.
This matches the worked example on Wikipedia and the row 1, 1, 2, 1, 1 in the OEIS table of Gaussian polynomials (A008967).
Both properties are standard (Wikipedia).
What do Gaussian binomial coefficients count?
First, partitions in a box. The number of partitions of N into at most k parts, each no larger than m, is the coefficient of q^N in [m + k choose k]_q, equation 26.9.6 in DLMF §26.9. With n = m + k, you are counting partitions that fit inside a k × (n − k) box.
For [4 choose 2]_q the box is 2 × 2:
Size 0: the empty partition
Size 1: 1
Size 2: 2 and 1 + 1
Size 3: 2 + 1
Size 4: 2 + 2
That is 1, 1, 2, 1, 1, the coefficients we found. Each shape's edge is a corner-to-corner path of k up-steps and n − k right-steps, and the area it cuts off is the partition's size (Wikipedia). New to partitions? Start with our guide to counting integer partitions.
Second, subspaces. When q is a prime power, [n choose k]_q equals the number of k-dimensional subspaces of an n-dimensional vector space over the finite field F_q (Wikipedia).
Put q = 2 in our example: 1 + 2 + 8 + 8 + 16 = 35 planes through the origin in F₂⁴. A plane needs two independent vectors: 15 non-zero choices for the first, 14 for the second, so 210 ordered pairs. Each plane has 3 × 2 = 6 such pairs, and 210 ÷ 6 = 35. For background, see finite fields built by hand and what a vector space is.
Why does q → 1 give back C(n, k)?
As q → 1, [n choose k]_q tends to n!/(k!(n − k)!), equation 17.2.28 in DLMF §17.2.
The algebra: each q-number 1 + q + ⋯ + q^(m−1) becomes m, so the formula turns back into the ordinary one. The counting reason: at q = 1 every partition in the box weighs 1, so you are just counting corner-to-corner paths, and there are C(n, k) of them. Pascal's rule survives too: [n choose k]_q = q^k [n − 1 choose k]_q + [n − 1 choose k − 1]_q, which is the familiar rule at q = 1 (Wikipedia).
How can you practise q-binomial coefficients?
Expand [5 choose 2]_q by factoring, as above.
You should get 1 + q + 2q² + 2q³ + 2q⁴ + q⁵ + q⁶; run the three checks on it and compare the row 1, 1, 2, 2, 2, 1, 1 in OEIS A008967.
List the 10 partitions that fit in a 2 × 3 box and sort them by size.
Put q = 2 and check that (31 × 30) ÷ (3 × 2) = 155 counts the planes in F₂⁵.
If factoring 1 − q^m still feels shaky, the Fermi Concept Library has a lesson for every concept in mathematics, including the polynomial algebra underneath. To check your own expansion line by line, the Fermi Problem Library has a step-by-step solver that explains the reasoning.



