For finite sets , the inclusion-exclusion principle states
To prove it, count one element at a time. An element belonging to exactly of the sets occurs in of their -fold intersections, so its total coefficient on the right is , using . An element in no set has coefficient zero. Every element of the union is therefore counted once, proving the identity.
For the keypad, an initial zero can never be entered: it has no preceding pair of ones and the first key is not two. Define four classes of valid four-digit sequences. Let contain sequences starting with two, with the last three digits arbitrary; let contain sequences with no zeros; let contain sequences of the form with ; and let contain sequences with .
These classes exhaust the valid codes. A sequence starting with two is unrestricted thereafter. Otherwise a zero cannot occur in position two, a zero in position three requires the first two digits to be ones, and a zero in position four requires digits two and three to be ones. Positions three and four cannot both be zero, since the last zero would then lack the required preceding pair. Thus a code outside either belongs to or has precisely one of the zero patterns covered by .
Their sizes are
The only nonempty pairwise intersections are , consisting of first digit two and three nonzero remaining digits, and , containing the single code . Hence and . All other pairwise intersections vanish, and therefore so do all intersections of three or four classes. Applying inclusion-exclusion gives
This counts sequences actually enterable under the history-dependent zero-key rule, rather than simply counting sequences which contain the substring .
A real sequence converges to if, for every , there is an integer such that for every . A convergent series is one whose partial sums converge to a finite real limit.
If , then . This necessary condition is the term test for divergence. Its converse fails: the harmonic series has terms but diverges. For a direct proof, each block from to contains terms each at least , so contributes at least . Infinitely many such blocks make the partial sums unbounded.
For the positive sequences in the final request, the inequality makes decreasing and bounded below by zero. The bounded monotone sequence theorem gives . Summing the decrements gives
Suppose . Since , this implies
But clipping preserves divergence of a positive series: if infinitely many , the clipped series has infinitely many terms equal to ; otherwise its tail equals the divergent tail of . Either case contradicts the displayed bound. Hence the only possible limit is
This proves the minimum-decrement convergence criterion without assuming that the divergent positive sequence itself tends to zero.
We use these countability facts: the integers are countable; a finite Cartesian product of countable sets is countable; a countable union of countable sets is countable; and every subset of a countable set is countable. Finite products can be enumerated by listing index tuples in increasing maximum coordinate, and countable unions by diagonal enumeration of pairs of indices.
Fix . For each degree bound , there are finitely many monomials with . An integer polynomial of total degree at most is specified by an integer coefficient for each of them, so these polynomials form a finite Cartesian product of copies of and are countable. Every polynomial has some finite degree bound. Taking the union over proves the countability of integer polynomial rings:
It is infinite because it contains all integer constant polynomials.
For , each nonzero polynomial has only finitely many real roots: repeated application of the factor theorem bounds their number by its degree. The real algebraic numbers are the union of these finite root sets over the countably many nonzero integer polynomials. Thus they are countable. If the real transcendental numbers were countable too, their union with the algebraic numbers would make countable, contrary to the allowed uncountability assumption. Hence there are uncountably many real transcendental numbers.
To construct an algebraically independent real sequence, choose outside the algebraic numbers. Suppose already satisfy the required nonvanishing condition. For each nonzero , write
At least one coefficient polynomial is nonzero, and the inductive hypothesis makes its value at nonzero. Consequently is a nonzero one-variable polynomial and has only finitely many real roots. There are countably many choices of , so the union of all these forbidden roots is countable. Choose outside it, which is possible because is uncountable. This extends the nonvanishing condition to . Recursion therefore gives
In particular the chosen numbers are distinct, since a relation is forbidden. Clearing rational denominators shows that every finite initial segment consists of algebraically independent elements over .
For finite sets , the inclusion-exclusion principle states
To prove it, consider an element belonging to exactly of the sets. If , it contributes zero to both sides. If , its contribution on the right is
which is its contribution to the union. Summing these contributions proves the formula.
For the keypad, a first digit zero cannot be entered. Define four families of valid codes: consists of all codes with no zero; consists of codes beginning with ; consists of with ; and consists of with . They cover every valid code. Indeed, if the first digit is not , a zero in the second position is impossible; a zero in the third requires the prefix ; a zero in the fourth requires the middle pair . In the third-position case the last digit cannot also be zero. Hence the only remaining zero-containing possibilities are exactly and .
Their cardinalities are
The only nonempty pairwise intersections are , with codes, and , with one code. All triple and fourfold intersections are empty. Applying inclusion-exclusion therefore gives
The restriction concerns actual preceding keypresses. It cannot license two successive zeros unless the first-key condition is already satisfied.
The potential factors as , so its zeros are and , with a double zero at the origin. Its derivatives are and . Thus there is a local minimum , a local maximum and an inflection at . The potential tends to on the far left and on the far right. These features determine the left-hand sketch.
Put . Newton's second law gives the phase plane system , . Its conserved mechanical energy and trajectories are
The linearization at has eigenvalues , and the surrounding energy curves are closed, so it is a center equilibrium. At the eigenvalues are , giving a saddle equilibrium. The figure shows the cubic potential barrier phase portrait; arrows point right when and left when .
Figure 1.
Cubic potential, trapped oscillations, escaping trajectories and the barrier separatrix
. Details.
For , there are three turning-point roots of . The two leftmost enclose a closed orbit around the origin: the particle oscillates between them. There is also a separate open component to the right of the third root, where an incoming particle turns and escapes to . The closed orbits run clockwise in the plane.
For , the factorization gives the separatrix
The branch with is a homoclinic orbit: it leaves the saddle asymptotically, turns at and returns asymptotically. On , one branch approaches the saddle and the other departs towards infinity. Approaching the saddle takes infinite time. The saddle itself is also an equilibrium trajectory.
For , the particle can cross the barrier. There is one left turning point below ; an incoming particle passes through the well, turns on the left and escapes to the right. For , only a right-hand open component exists, with its turning point beyond . At , the stationary centre coexists with a right-hand open trajectory turning at . Thus negative energy does not imply trapping here: the cubic potential is unbounded below on the right.
Take upward velocity as positive, and consider the closed material system consisting of the rocket and the fuel it ejects during a short interval . Initially its mass and momentum are and . Let be the ejected mass, so the rocket's mass change is . At the end its velocity is , while the ejected gas has inertial velocity to first order; its downward relative velocity need not be downward in the inertial frame.
The final total momentum, to first order, is
Neglect air resistance and take the gravitational acceleration constant. The external gravitational impulse on this material system is to first order. Newton's second law therefore gives , or
The positive thrust is because fuel loss makes . Applying to the rocket alone without accounting for the escaping momentum would give the wrong equation.
For constant and positive mass, divide by and integrate from release at :
Thus the gravity-corrected rocket equation is equivalent to
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 gives
where the last equality is Pascal's identity. Thus the induction proves the hockey-stick identity for all nonnegative :

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact