For finitely many finite sets , the inclusion-exclusion principle states
To see why, an element belonging to exactly of the sets contributes
by the binomial theorem. Elements outside the union contribute zero. Equivalently, if these sets lie in a finite universe , the number avoiding all of them is
The prime-power contraction under pth powers is the key step. If with , the binomial theorem gives
The first term is divisible by . Each later term is also divisible by that power because for . This includes and . Therefore
Start with and apply this implication times, increasing both the exponent and modulus at each step:
The case is precisely the original congruence.
By Fermat's little theorem, . Apply the same result with initial modulus and :
Write a matrix in the upper unitriangular group as . Here , and its only potentially nonzero entry in is . The binomial theorem therefore gives the unitriangular matrix power formula
For an odd prime number , both and vanish in the finite field . Thus . A nonidentity has order dividing the prime (by the same exponent-division argument as in part (i)), and so has order exactly .
For , take and . Then , while . This element has order , not . Hence every nonidentity element has order exactly for odd . The counterexample at accounts for the quadratic term in the matrix power formula.
In the ambient set of all functions from to itself, let be the forbidden event . Apply the avoidance form of the inclusion-exclusion principle from part (i).
For a proper subset of the cyclic difference constraints, with , the selected edges form disjoint paths around the cycle, including isolated vertices. There are components. On each component, choosing one value of arbitrarily determines all the other values by the prescribed differences. No consistency condition occurs because the cycle has been broken. Therefore
This also works for , whose two directed constraints use the same pair of vertices: any single constraint leaves one freely chosen value.
If all constraints hold, summing them around the cycle gives the necessary condition
It holds when is odd and fails when is even, the latter sum being congruent to . When it holds, choose in ways and determine every other value; the final constraint is then consistent. Thus the full intersection has size for odd and for even .
There are subsets of size . By the binomial theorem,
Hence the number of admissible functions is
For finite sets , the inclusion-exclusion principle states
To prove it, count the contribution of one element. If it belongs to exactly of the sets, it is counted by intersections of size . Its total weight is
using the binomial theorem. An element belonging to none contributes zero. Summing these weights gives the cardinality of the union and proves the inclusion-exclusion principle. Equivalently, within a finite ambient set , the number avoiding every is the sum over all , with sign and the empty intersection interpreted as .
Write both nonnegative integers in base-p expansions, padding with zero digits to a common length . By the preceding polynomial identity,
Expanding the last product with the binomial theorem, each term is obtained by choosing an integer with . Its exponent is and its coefficient is . Uniqueness of base-p expansions says that the only way this exponent can equal is to choose for every .
If some , no such term exists and the coefficient is zero. Otherwise its coefficient is precisely the product below. Comparing the coefficient of proves Lucas theorem:
with the convention for . This also covers , and padding either expansion by further zero digits multiplies the product only by .
For , the identity for binomial coefficients
shows that divides . Since is a prime number and is not divisible by , cancellation modulo gives
The binomial theorem consequently gives as a coefficientwise polynomial modular congruence. Apply the same identity with replaced by and use mathematical induction to obtain
This is an iteration of the Frobenius endomorphism in characteristic . Comparing the intermediate coefficients gives the prime-power binomial divisibility result
True. First suppose with maximal. By the Chinese remainder theorem, choose and modulo all other prime-power factors. This is a unit, with Jacobi symbol one, because it is one modulo every prime. For , the binomial theorem gives
because and all higher terms contain . It is therefore a witness to the desired failure.
If is square-free and composite, it has at least two prime factors. Choose to be a quadratic nonresidue at one prime and one at every other prime, again using the Chinese remainder theorem. Then . At a different odd prime , however, . These two cases prove that every odd composite has an Euler-Jacobi witness, unlike the situation for the ordinary Fermat primality test.
For finite sets , the inclusion-exclusion principle states
It counts each element once: an element in exactly of the sets contributes , by the binomial theorem.
For the cyclic digit run problem, let mean that the three digits starting at position form a run, for . Every run of length at least three contains one of these triples, so we need . Introduce the five differences
A starting digit and these five residues determine a unique string, including runs that cross and . In these coordinates requires or .
Each single event fixes two differences, with two choices of sign; the initial digit and the other three differences are free. Thus . For intersections of two events, adjacent starting positions force three consecutive differences to have the same sign, giving . There are three such pairs. The other three pairs have disjoint constrained difference positions, with independent signs and one free difference, giving each. Consequently the sum of pair-intersection sizes is .
For triple intersections, and each force four consecutive differences to have the same sign, leaving one free difference, and each has size . The other two triples, and , divide the five differences into two blocks with independent signs; each has size . The triple-intersection sum is therefore . Finally, all four events force all five differences to have the same sign, giving strings.
The inclusion-exclusion principle now gives the number of strings
Using differences makes the overlap conditions explicit and prevents double-counting long cyclic digit runs.
First establish the binomial theorem needed throughout this question. For integers , define the binomial coefficient to be the number of -element subsets of an -element set. Counting ordered selections and then forgetting their order gives
with the factorial convention . In the product of factors , choose from exactly factors and from the others. Each choice contributes , and there are choices. The distributive law therefore proves
for every complex number , including by the empty-product convention.
To evaluate the even-indexed sum, use the even part of a polynomial: averaging the binomial theorem at and cancels the odd powers. For ,
The two complex numbers satisfy . Their th powers are both , since . Thus the sum is
Differentiate the finite binomial theorem and set . For this gives
For the sum is directly.
For the alternating binomial moments, it is useful to differentiate in a form that introduces falling factorials. Write , with . Differentiating the binomial theorem times and multiplying by yields, for ,
At , the right side vanishes when , and equals when .
The polynomials have degrees and leading coefficient , so successive cancellation of leading terms expresses as a linear combination of them. If , every falling-factorial term has index and hence its alternating sum vanishes. If , the coefficient of is , and all lower-index terms still vanish. Therefore the alternating moments are
For , the latter identity uses the constant polynomial , so its value at is ; thus as well. This makes the edge-case convention explicit rather than treating as an unrelated numerical expression.
Eisenstein's criterion. Let be a nonconstant primitive polynomial. If a prime number satisfies , for , and , then is an irreducible polynomial over .
To prove the Eisenstein criterion, suppose a nontrivial factorization exists over . Gauss lemma for polynomials gives with of positive degree. Their leading coefficients are not divisible by , because their product is . Reduction modulo therefore preserves both degrees, and
Since the only irreducible factor of the right side is , both reduced factors are nonzero monomials of positive degree. Their constant coefficients are consequently divisible by . This would make , a contradiction.
For the requested polynomial, shift the variable by one. The binomial theorem gives
It is monic, all coefficients below the leading one are divisible by , and the constant coefficient is , not divisible by . The Eisenstein criterion proves irreducibility of this shifted polynomial. The substitution is an automorphism of , with inverse , so it preserves nontrivial factorizations. Hence
This is the cyclotomic polynomial for a prime index.
If there are balls in box A, a ball currently in B is selected with probability , increasing the count, and a ball in A is selected with probability , decreasing it. For ,
with every other transition zero. This is the Ehrenfest urn model.
The stationary distribution is
It is normalized by the binomial theorem, and it obeys the detailed balance:
All other pairs have zero flux in both directions. These identities prove stationarity and show that this is a reversible Markov chain in equilibrium. The finite chain is irreducible and has period two; reversibility does not require aperiodicity.
The quaternionic projective space is the space of one-dimensional right quaternion subspaces of . Equivalently it is the quotient of the unit sphere by simultaneous right multiplication by unit quaternions. Its coordinate filtration has one open cell in each dimension , for . Hence its cellular cohomology is in those dimensions and zero otherwise.
Let be the quaternionic tautological line bundle. Its unit sphere bundle is , with fibre . The Gysin sequence of a sphere bundle shows that multiplication by its Euler class is an isomorphism from to for . Choose the generator . Its powers generate every nonzero positive degree, giving the cohomology ring of quaternionic projective space
This also accounts for .
First take . Under the coordinate inclusion , the pulled-back quaternionic line is the quaternionic extension of the complex tautological line . As a complex rank-two bundle it is : a transition scalar acts on the two complex coordinates of a quaternion by and . Put , the degree-two generator of the cohomology ring of complex projective space. The Whitney sum formula for Chern classes gives
Here the Euler class of a complex vector bundle is its top Chern class, using the complex orientation. In particular this degree-four pullback has coefficient one; it is not a multiple of larger absolute value. The compatible tautological bundles on the projective filtrations give the same equality for every , and multiplicativity then determines the whole ring map:
It is zero whenever . These facts are the complex inclusion into quaternionic projective space.
For an odd prime , the Steenrod reduced powers are natural stable cohomology operations
They satisfy , the Cartan formula, when , and when . In particular, on one has and for . The Cartan formula and the binomial theorem give
Pass to the infinite projective spaces, where , , is injective. The equality just obtained determines the Steenrod powers on quaternionic projective space; restricting to the finite spaces gives
with coefficients modulo and powers above set to zero. In particular , , and for . The infinite-space argument matters: the finite inclusion cannot detect those degrees for which .
Finally put and . Both have reduced cohomology in degrees and zero otherwise. Choose integral generators for whose pullbacks under the quotient map are , and suspended integral generators for from .
Use . Naturality for the quotient and the formula above give
Stability under the suspension isomorphism instead gives
Any homotopy equivalence would induce isomorphisms on the rank-one integral groups, so and with . Reducing modulo five and commuting with would require in . Neither nor equals or modulo five. Therefore
The essential point is that integral generator signs constrain Steenrod comparisons. Arbitrary changes of basis over could rescale these two nonzero coefficients into agreement; a genuine equivalence must also preserve the integral lattices, where only the two signs are available.
The binomial theorem makes the sum of the proposed probability mass function equal to ; every term is nonnegative. Realize the associated binomial distribution as , where the are independent variables with the Bernoulli distribution of parameter . Each has expected value and variance . Linearity of expectation and variance additivity for independent random variables yield
At or this is a constant random variable; the same formulas apply, with the endpoint mass understood by continuity.
For , use the binomial coefficient identity . It reduces the left side to . Put . Then , and the binomial theorem gives
Thus the required coefficients are
For the sum has the single coefficient . For , the power denotes the constant monomial .
The original PDF allows , but its displayed ratio is then . Literally that expression is undefined. The meaningful endpoint identity is obtained before normalization:
This polynomial identity is valid at , giving on both sides. The normalized formula and the Bernstein monomial recurrence below are used only for .