For , choose an ordered list of distinct elements: there are such lists. Every -element subset occurs in exactly orders, the number of permutations of its elements. Thus the count is the binomial coefficient
For fixed and , every numerator factor lies between and . Consequently
The constants depend on the fixed , not on . These inequalities prove in big theta notation. More precisely, dividing the product by gives the fixed-cardinality binomial coefficient asymptotic . For , there is exactly one empty subset, and the assertion is .
The number is
A direct search over every -element subset must inspect candidates. Testing one candidate by generating its subset sums creates values; storing previously seen sums detects a collision. Generating them incrementally needs arithmetic operations, or for the straightforward independent calculation of each sum. Thus the simple overall search has cost on the scale of , apart from integer-arithmetic and data-structure costs.
The important time complexity distinction is that fixed gives polynomial growth in , of degree , but this can still become impractically large. If increases with , both the candidate count and the internal power set can grow exponentially. For example, near the binomial coefficient is already exponentially large. An exhaustive implementation can therefore encounter a combinatorial explosion; the fixed- estimate must not be described as exponential in .
Each of the elements is either included or excluded, so the rule of product gives . Alternatively, partition the power set into disjoint families according to cardinality. The family of -element subsets has size equal to the binomial coefficient . The rule of sum therefore gives
Consider the advection equation with constant speed , no sources, and periodic boundary conditions on . Use equal cells of width , time step , and indices modulo . The exact solution is the periodic translation . At a face, the Riemann problem transports the left state to the right, so the two-state upwind numerical flux is , with .[ref]
The finite volume method with this numerical flux and an explicit Euler method step gives
Here represents a cell average; the recurrence also occurs in the upwind finite difference scheme. Impose the specific CFL condition . Each updated cell average is then a convex combination of two old ones. This proves preservation of their initial minimum and maximum, including nonnegativity for nonnegative data, and contraction of the maximum norm of the difference of two solutions on this periodic grid. These statements concern this constant-speed scalar update with this time step.
For an original synthetic example, take , , , , hence Courant number . Choose a function constant on each successive cell, with the following values, so these are exact initial cell averages. One step gives
For example, cell zero receives from cell seven across the periodic face: . All eight face transfers cancel in the total by shared face flux cancellation. More generally this periodic recurrence conserves the total algebraically for any , even though the CFL condition is needed for the convex combination argument. With the same initial data and , one step gives and , despite preserving the total.
Figure 1.
Original periodic upwind profile at zero, one and four steps: the integral remains three quarters while jumps spread
. Details.
After four steps, , the exact translated profile has moved two cells to the right. Repeated averaging instead gives the explicit binomial coefficient formula
with all indices modulo eight. The diagram compares these computed cell averages with the exact translated cell averages. Their integrals agree, but the numerical jumps spread across cells. The finite volume method is useful for jump discontinuities because it retains the integral balance even at a jump; conservation alone does not guarantee a sharp profile. At this particular update is an exact one-cell shift, whereas for it mixes neighboring states. No accuracy conclusion at a jump follows just from the conserved total.
Point-count criterion for y squared equals x cubed plus k x Created 2026-10-05 Updated 2026-10-07
For odd and , take . If , pairing with cancels the Legendre symbols. If , the coefficient formula for trace of Frobenius modulo p gives
The binomial coefficient is nonzero because every factorial involved is shorter than . Thus the Trace of Frobenius is not zero in the second case.
Polynomial identity 2026-10-14
A polynomial identity is equality of two polynomials for every value of the variables, rather than an equation imposed only at selected roots. Over the real or complex numbers, this is equivalent to equality of corresponding coefficients: their difference, if nonzero, has only finitely many roots in one variable. The binomial theorem is an example. Coefficient comparison transfers a polynomial product identity into finite sums of binomial coefficients.
For a prime number and integer , every interior binomial coefficient in row is divisible by . The polynomial identity iterates under the Frobenius endomorphism to . This concerns divisibility by , not necessarily by .
Property B 2026-10-14
A hypergraph has Property B if its vertices of a hypergraph can be coloured with two colours so that every hypergraph edge meets both colour classes. An -uniform hypergraph with fewer than edges has Property B, by a fair independent colouring and the union bound. Conversely, for , take vertices and independently sample uniformly random -subsets. In any fixed colouring an edge is monochromatic with probability at least : convexity of binomial coefficients reduces to the balanced colouring, and . The union bound over colourings gives a probability at most of any proper colouring. Removing repeated edges leaves a hypergraph without Property B and with edges.
There are paths with up steps and down steps, ignoring the height constraint. For , reflect the prefix of a bad path through its first visit to height , swapping its up and down steps. The resulting path has up steps and down steps, hence final height two. Its first visit to height one identifies the inverse reflection, so this is a bijection. There are bad paths. Subtracting gives
This count connects a global nonnegative-height requirement to an unrestricted binomial coefficient. The case is separately the unique empty path.
For independent and identically distributed Bernoulli random variables with success probability , the sum has a binomial distribution. Every length- pattern with successes has probability , and the binomial coefficient counts its possible success positions. Therefore
The usual endpoint convention includes and as deterministic cases. For and , the five probability masses are divided by . The sample mean takes values , with variance and standard deviation . At , its variance is and its standard deviation is .
Figure 1.
Exact sample-mean distributions distinguish fresh IID draws from a copied common coin
. Original exact binomial distribution probabilities for sample sizes . Blue marks give the mass at each possible mean under independent fair draws. Orange marks give the masses for the same fair draw copied times: at zero and at one for every . These are discrete probability masses, not density values or measured histograms. Details.
Sampling without replacement Created 2026-10-14 Updated 2026-10-14
Sampling without replacement selects distinct labelled units: after a unit is selected it is unavailable for the remaining draws. Distinct labels can carry equal numerical values, so repeated values do not necessarily imply a repeated unit. The rule alone does not specify selection probabilities; a procedure favoring particular units is still sampling without replacement but need not be simple random sampling.
In uniform sequential sampling without replacement, the next label is chosen uniformly among those remaining. For a population of labels, any ordered sequence of distinct labels has probability . Each size- subset has possible orders, so its probability is . This gives the fixed-size simple random sampling design. Equivalently, take the first labels of a uniformly random permutation. Restricting a uniformly random permutation to a specified label set preserves uniformity; biased modulo mappings should not replace uniform selection.
The draw positions have identical marginal probability distributions, but exhibit statistical dependence. If the first label is , the conditional probability that the second label is is zero, whereas its marginal probability is . Thus these draws are not independent and identically distributed when and . For a marked subset of labels, counting size- subsets with binomial coefficients gives the hypergeometric distribution. The resulting negative covariance explains the finite population correction for both counts and sample means.
Scalar spin-spin coupling 2026-10-20
Through-bond interaction between nuclear spins that splits NMR resonances. In the weak-coupling limit, equivalent spin- neighbours produce lines with binomial coefficient intensities. Equivalent nuclei do not split each other.
Simple random walk on the integer line Created 2026-09-24 Updated 2026-10-14
A simple random walk on the integer line starts at and takes independent and identically distributed random variables as unit increments, with
The simple symmetric random walk has ; a biased random walk has . At or every step is deterministic, giving or respectively.
Count the rightward steps using indicator functions:
Thus the endpoint is a shifted and rescaled random variable with a binomial distribution. For a worked example, at the endpoint means exactly three rightward steps and one leftward step. There are possible orders, so its probability is , equal to in the fair case. More generally the binomial coefficient counts the orders, giving the exact probability mass function
In particular, the endpoint must have the same integer parity as : . For the support of a probability distribution is exactly . At only even integers in are reachable; at only odd integers are reachable. This restriction is easy to lose if one draws a smooth curve instead of discrete probability masses. The fair-walk counting argument is also presented in Grinstead and Snell, Introduction to Probability, section 12.1.
Figure 1.
Exact binomial endpoint probabilities for fair walks of 20 and 80 steps and a biased walk of 80 steps; only even endpoints are possible.
Details.
The endpoint identity and the binomial distribution give the expected value, variance, and standard deviation
A short direct check gives and , hence . Then apply linearity of expectation and the variance of a sum of independent random variables.
The absolute width and the width relative to the number of steps answer different questions. In the fair case the standard deviation grows from to , while shrinks from to . At , the standard deviation is , or times the fair width, and . Centering and dividing by each walk's own standard deviation gives, for ,
This rescaling equalizes the variances, not the entire probability distributions. The spacing between reachable endpoints is two, so its rescaled spacing is : approximately for the fair -step walk, for the fair -step walk, and for the biased -step walk.
The positions themselves are dependent. For , , where the second term is independent of . Their covariance is therefore
For example, in the fair case allows or , whereas allows or . Nevertheless the position process is a Markov chain: given its current position, the next fresh increment has no dependence on its past. Its transition probabilities are
These transition probabilities are the same at every time and every integer position: shifting both and by the same integer leaves unchanged. Thus the Markov property and independent increments coexist with dependent positions.
Size of a type class 2026-10-14
Write . Arranging copies of each symbol gives the multinomial coefficient
The division by the factorials removes permutations among identical copies. In the balanced four-symbol example, . For binary symbols this becomes the binomial coefficient ; for three symbols with counts , the class contains strings.
Stars and bars counts tuples of nonnegative integers with a prescribed sum. For integers and , its statement is
Such a tuple is a weak composition of an integer. Think of labelled bins: counts identical objects in the first bin, in the second, and so on. Bin names distinguish positions even when counts agree. Stars and bars counts these count tuples; assigning individually distinct objects requires additional information. [ref]
Computed example. With and , the number of weak compositions of an integer is . The string ••|•|•• encodes : two dots before the first bar, one between the bars, and two after the second. For a fixed first-bin count , the second-bin count can be any integer from to and the third is forced. Thus the direct count is .
Figure 1.
Stars and bars for five identical objects and three labelled bins: ordinary splits, adjacent bars, and bars at either end
. Details.
Adjacent bars encode an empty middle bin: ••||••• gives . A bar at the left end encodes an empty first bin, as in |••|••• for ; a bar at the right end encodes an empty third bin, as in ••|•••| for . These are valid weak compositions of an integer. For every count is zero, and for the unique tuple is , consistent with .
Proof outline. Replace each count by that many dots and separate successive groups with bars. Reading the group sizes reverses this construction, so it is a bijection between weak compositions of an integer and strings of dots and bars. Choose the bar positions among positions; the binomial coefficient counts the choices. The beauty is that empty bins need no separate cases: end bars and adjacent bars encode them automatically.
If every bin must be nonempty, the tuples are compositions of an integer, and their count is for ; for there are none. Subtract one from every count, setting . This is a bijection to weak compositions of an integer of , so stars and bars gives . For five objects and three bins, this is , with the six positive tuples
For instance, shifts to , whose sum is . Sorting the six positive tuples collapses them to just two integer partitions, and . Thus named bins and unordered summands answer different questions.
Stars and bars is useful for allocating identical resources or enumerating integer solutions without listing them individually. Prescribed lower bounds can be subtracted just like the nonempty-bin requirement. Upper bounds require removing forbidden tuples; the existing bounded weak compositions article applies the inclusion-exclusion principle to those violations.
For the proportionally fair allocation on a linear flow network, independent Poisson flow arrivals at rates and exponential document sizes of rates give a continuous-time Markov chain with departures . Put . Under for each local route, the normalizing constant is . The binomial coefficient weight has adjacent-state ratios equal to the aggregate service rates, proving detailed balance. For more general network topologies, proportional fairness need not give this reversible product form.
The proportionally fair allocation on a four-cycle has aggregate service on each active odd route and on each active even route. With Poisson arrival rates and exponential document-size parameters , the departure intensity is . The adjacent ratios of the displayed binomial coefficient weight cancel those intensities in detailed balance, with .
A sufficient statistic allows the observed likelihood function to be stored through a shorter record, up to a parameter-independent factor. For the Bernoulli sample sum as a sufficient statistic, write
The second likelihood function belongs to the observed count; the first belongs to the observed sequence. Their absolute values differ by the binomial coefficient, but their likelihood ratios between any two interior parameter values agree. A maximum-likelihood estimator can therefore use just .
Figure 1.
Sequence to count: sufficient compression preserves likelihood comparisons
. For , three example sequences share . Recording produces the count likelihood . Normalizing each curve by its maximum makes the two curves coincide. A reverse random draw from the six arrangements restores the full-data probability distribution, using no unknown . Details.
This compression discards which arrangement actually occurred. To reproduce the original experiment's probability distribution, first draw from its binomial distribution and then draw uniformly from the arrangements with that sum. The second step is independent of , so it supplies no additional evidence about . It does not recover the particular discarded sequence. If the scientific question changes to time trends or statistical dependence between observations, the common- independent and identically distributed Bernoulli model may no longer apply, and the ordering can become informative.
For nonnegative integers , the Stirling number of the second kind
counts the set partitions of an -element finite set into exactly unlabelled blocks of a set partition. Set , for , and for . Also for . Grassl and Levin develop these counts through explicit set partitions and a recurrence relation. [ref]
Insert one distinguished element. For and , the Stirling numbers of the second kind obey
Proof outline. Inspect the block of a set partition containing . If it contains another element, removing leaves a set partition into blocks of a set partition; conversely, insert into any of those blocks of a set partition. If is alone, remove its singleton set and obtain a set partition into blocks of a set partition. The cases cannot overlap, and deletion reverses each construction. This explains the factor even though the blocks of a set partition have no names. [ref]
For , start with the three two-block set partitions of . Inserting into either block of a set partition gives six possibilities. The remaining possibility is , obtained by making a singleton set. Hence . The seven set partitions in the diagram comprise four with sizes and three with sizes ; this grouping by sizes independently gives .
Figure 1.
Exact construction of all seven two-block set partitions of : six insert into an existing block of a set partition, and one creates a singleton set
. Details.
Three different counting questions. The binomial coefficient selects one -element subset. The Stirling number of the second kind groups all distinct elements into nonempty unnamed blocks of a set partition. The power counts all functions to a specified -element finite set, allowing some destination labels to go unused. At , these counts are respectively , , and . Choosing two people, making two unnamed nonempty teams, and assigning each person a red or blue label are different tasks.
When the destinations have labels. For fixed finite sets of sizes , respectively, the number of surjective functions is
Here every element of must be used. Each surjective function gives a set partition of into its nonempty preimages . Conversely, assign the distinct destination labels to the blocks of a set partition in ways, where is a factorial. For two labelled teams of four people this gives : of the assignments, exactly two use only one label. Dividing arbitrary function counts by fails in general because unused labels can be permuted without changing a function. For example, cannot count set partitions. The empty-to-empty function is a surjection, consistent with . Stanley gives the bijection underlying this qualification.[ref]
For example, the inclusion-exclusion principle counts the surjections from four elements to three labelled destinations as . Thus . An independent check chooses the only two-element block of a set partition in ways; the other two elements form singleton sets.
Why these numbers also occur in algebra. Classifying all functions to an -element finite set by the size of their image gives
For a fixed set partition, the falling factorial counts assignments of distinct labels to its blocks of a set partition, and is zero when . At , this reads . Replacing by yields a polynomial identity: both sides agree at every nonnegative integer. Thus the Stirling numbers of the second kind translate powers into falling factorials. Grouping by equal values turns a counting rule into an algebraic change of coordinates. Summing without destination labels instead gives the Bell number.
For distinct objects, the number of unordered pairs of different objects is
Ordering the objects gives pairs with the first object, new pairs with the second, and so on down to one. Alternatively, ordered pairs count every unordered pair twice. The binomial coefficient therefore counts the edges of a complete graph on vertices. This is also consistent with the handshaking lemma: each vertex has degree of a vertex , and the degree sum counts every edge twice.