Counting binary strings with bounded ones 2026-10-13
A binary string with zeroes and ones is determined by its one-positions, giving possibilities. Sum for and apply the hockey-stick identity. Equivalently, distribute at most ones among the gaps around the zeroes and add a slack count; stars and bars counts nonnegative counts summing to .
Pascal's triangle Created 2026-10-06 Updated 2026-10-18
Row of Pascal's triangle consists of the binomial coefficients , beginning with row . Boundary entries are one, and Pascal's identity says each interior entry is the sum of the two entries above it. The hockey-stick identity evaluates sums along its diagonals.
The highlighted entry in the binomial coefficient illustration is . Split two-person teams according to whether they contain the fifth person: six choose both members from the other four, and four contain the fifth person together with one of those four. Thus . All entries can be generated by the same local rule, so a large table of counts needs no repeated enumeration of its subsets.
Reading row seven. Label the entries in each row from on the left through on the right. Rows zero through seven are shown below. The highlighted entry comes from and . Starting with row zero , the edges remain one and Pascal's rule determines every interior entry, so mathematical induction uniquely determines the whole array.
Rows zero through seven of Pascal's triangle, with
. The index increases from left to right in each row; it counts north steps in the north-east lattice path interpretation. Each row index counts all steps. Details.The triangular and rectangular layouts describe the same entries. For a north-east lattice path ending at , set and , so . The predecessor has indices , while has indices . Thus the grid's west and south arrivals are exactly the triangle's two parents. This change of indices explains why the north-east lattice path recurrence and Pascal's rule agree.
There is also a global check on the local construction: row sums to . Every subset of an -element set appears exactly once among the classes of sizes , and each element has two inclusion choices by the rule of product. In row seven, . Replacing every subset by its complement reverses the row, explaining . The binomial theorem packages the whole row as the coefficients of .
Blaise Pascal's Traité du triangle arithmétique, published in 1665, presents an arithmetic array and connects it to combinations, games of chance, and powers of binomial expressions. This makes the connection between a counting table and several applications visible in the original work. [ref]
https://archive.org/details/bub_gb_UqgUAAAAQAAJ. Pascal, Traité du triangle arithmétique, 1665 edition
The University of Cambridge's account of the treatise explains its 1654 composition and the organization of these applications. [ref]https://api.repository.cam.ac.uk/server/api/core/bitstreams/9bfbc9c8-fa56-4694-b96d-fc18db0f562f/content. Cambridge University Library, account of Pascal's treatise
Past exam of the mathematics course of the University of Cambridge 2001 ia Paper 4 2E Solution Created 2026-09-24 Updated 2026-10-14
For nonnegative integers , prove the hockey-stick identity by mathematical induction on . The induction base case is . If the formula holds through , Pascal's identity givesThis supplies the inductive step.
A binary string containing exactly zeroes and ones has length . Choosing its one-positions gives possibilities. Different values of give disjoint collections, so counting binary strings with bounded ones yieldsThis includes : the strings are the empty string and the all-one strings of lengths one through .
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 4 2E Solution Created 2026-09-24 Updated 2026-10-14
Define the binomial coefficient as the number of -element subsets of an -element set. Equivalently it is : there are ordered lists of distinct elements, and each subset gives such lists. The empty subset gives .
Distinguish one element of the set. A -element subset either omits it, giving possibilities, or contains it and chooses its other elements from the remaining set, giving possibilities. These cases are disjoint and exhaustive, proving Pascal's identity:For the requested sum, fix and use mathematical induction on . At , both sides equal one. If the assertion holds at , adding the next summand giveswhere the last equality is Pascal's identity. Thus the induction proves the hockey-stick identity for all nonnegative :
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 4 Solution Created 2026-09-24 Updated 2026-10-14
Define the binomial coefficient to be the number of -element subsets of an -element set. Equivalently, count ordered selections and divide by the orders of each subset to obtain , with .
Fix one distinguished element. The -subsets not containing it are counted by ; those containing it correspond bijectively to -subsets of the remaining elements. These are disjoint and exhaustive classes, proving Pascal's identity:For the summation, use mathematical induction on , retaining an arbitrary fixed . At , both sides equal one. Suppose . Adding the next term and applying Pascal's identity givesThis is the required statement for , completing the induction, including . Hence the hockey-stick identity in this form is
Past exam of the mathematics course of the University of Cambridge 2014 ia Paper 4 2E Solution Created 2026-09-24 Updated 2026-10-06
For integers , define the binomial coefficient byHere the factorial is the product of the positive integers up to . This also counts the -element subsets of an -element set: an ordered choice has possibilities, and each subset is ordered in ways.
The required hockey-stick identity follows by mathematical induction on , with fixed. For , both sides are . If it holds at , adding the next binomial coefficient and using Pascal's identity givesTherefore for every ,
For fixed , use mathematical induction on . At , both sides equal one. If the hockey-stick identity holds at , then Pascal's identity givesThis is the required formula with replaced by .
Fix , using the convention for binomial coefficients that when . At , both and equal if and otherwise.
For the successor step, apply the induction hypothesis, then Pascal's rule:Thus mathematical induction proves the hockey-stick identityThe zero convention also covers the case , without a separate starting index.
