Skip to content
OneKitly

The Odd Numbers in a Pascal Row Are Always a Power of Two

Published 12/4/2026 · 3 min read · Developer tools

Lena Hoffmann

Lena Hoffmann — Science & education writer at OneKitly

Mathematics · Physics

Checked against 2 sources

View profile →
In short

Count the odd binomial coefficients in any row of Pascal's triangle and the answer is always a power of two — specifically 2 raised to the number of ones in the row index written in binary. Row 29 is 11101 in binary, which has four ones, so sixteen of its thirty entries are odd; the identity holds for all thirty rows the tool will draw and for every row beyond them. The rows that are entirely odd are exactly those numbered 1, 3, 7, 15, 31 and so on, where the binary form is all ones, and colouring the odd entries dark produces the Sierpiński triangle without anyone drawing a fractal.

Advertisement

Row 29 has thirty entries and exactly sixteen odd ones. Write 29 in binary — 11101 — count the ones, and 2⁴ = 16 is the answer for every row.

Why the multiplication has to come before the division

Each entry is built from its neighbour by the rule C(n, k) = C(n, k−1) × (n − k + 1) ÷ k, and in integer arithmetic the order is not optional. The product C(n, k−1) × (n − k + 1) is always divisible by k, so multiplying first and dividing second is exact at every step; dividing (n − k + 1) by k first would truncate and the whole row would be wrong from that point on. Floating point avoids the truncation and introduces drift instead: by row 57 the largest entry passes 2⁵³ and a double can no longer hold it exactly. Thirty rows never reach that, so the exact integers here are insurance rather than necessity — but the ordering is necessity, at every row.

Every row sums to a power of two, and that is the whole of the binomial theorem

Row 29 adds up to 536 870 912, which is 2²⁹, and the reason is the binomial theorem read with both variables set to one: (1 + 1)ⁿ expands to the sum of the row. That is also why the row counts subsets — the number of ways to choose any number of items from twenty-nine is the number of subsets of a twenty-nine-element set, and both are 2²⁹. Every combinatorial identity you meet later is a rearrangement of the same picture: the hockey-stick sum, Vandermonde's identity and the count of lattice paths all read off the triangle before they are proved from it.

In binary
Odd entries per row, and where they come from
RowIn binaryOdd entries out of the total
3114 of 4
71118 of 8
15111116 of 16
291110116 of 30
Pascal's triangle generatorGenerate Pascal's triangle to any depth, with exact big-integer entries. Each number is the sum of the two above it, and row n holds the binomial coefficients — the coefficients of (a+b)ⁿ. The triangle hides the Fibonacci numbers, powers of two, and the Sierpinski pattern.Try the tool →
Advertisement

Frequently asked questions

Does the same rule work for other primes?
It does, in a generalised form. Kummer's theorem says the power of a prime p dividing C(n, k) equals the number of carries when k is added to n − k in base p, and Lucas's theorem reduces the coefficient modulo p to a product of digit-wise coefficients. For p = 2 that collapses to the statement above; for p = 3, colouring the entries not divisible by three produces a different fractal on a triangular lattice. The binary case is the famous one because carrying in base two is the easiest carry to see.
Why stop at thirty rows?
Because the width, not the arithmetic, is what breaks. Row 29 already has thirty numbers, the largest of them 77 558 760 at eight digits, and a triangle laid out with every entry visible is wider than any screen well before the numbers get interesting. Beyond that the useful view is not the triangle at all but a single coefficient, which a combination calculator gives directly without drawing everything above it.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?