Binary long division 2026-10-31
For integers and , an integer division algorithm determines the binary numeral system digits of a quotient by testing and conditionally subtracting successively halved multiples of the divisor. The loop invariant , together with , makes each step a halving of the remaining quotient interval. Start with and large enough that . To decrease by one, subtract from and add to exactly when . Both branches preserve the displayed equality and establish . When , the quotient and remainder conditions hold.
Binary numeral system Created 2026-09-29 Updated 2026-10-20
The binary numeral system is positional notation with radix two. Each binary digit is zero or one, and its place value is a power of two. A one includes that weight in the sum; a zero skips it. The binary representation therefore selects and represents the integer .
To obtain those binary digits from , repeatedly use Euclidean division by two:
The remainders, in the order produced, are . Read them in reverse order to get . The final zero is the quotient that stops the conversion, not an additional leading binary digit. Starting with zero itself needs the special single-digit representation .
A useful independent check reads the binary digits from left to right. Start with and, for each binary digit , replace by . For , the intermediate values are . This reconstructs the integer without reversing a list and explains why appending a zero on the right doubles the value.
Binary is well suited to computation because each binary digit has just two possibilities. A stored bit can encode either possibility; groups of bits encode larger integers. Practical integer arithmetic can use a radix that is itself a power of two, grouping several binary digits into each stored numeral digit.[ref] A displayed negative integer, such as , uses a separate sign. A computer's particular signed storage convention is an additional encoding choice, so the displayed sign should not be confused with an extra binary place.
If an equivalence relation is closed in a space's square and the quotient map is open, the quotient is Hausdorff. An inequivalent pair has an open rectangle avoiding the relation. The two factor images are open quotient neighborhoods and are disjoint, since an intersection would give equivalent representatives in that rectangle. Conversely, a Hausdorff quotient always has a closed equivalence relation by pulling back its closed diagonal.
Divisibility Created 2026-09-24 Updated 2026-10-18
For integers , divides when multiplication by some integer takes to :
Then is a divisor of , and is an integer multiple of . The notation means that no such integer exists. For , this is equivalent to saying that the quotient is an integer, or that Euclidean division by leaves remainder zero.
For example, because , whereas because . Signs do not change divisibility: because , and because . In general, changing the sign of either input preserves the relation.
The definition here permits zero as either input. Every integer divides zero, since . In particular, ; however, whenever , since is always zero. This is a statement about multiplication, and assigns no meaning to division by zero: remains undefined.
Two useful properties come directly from the defining multiplication. Divisibility is a reflexive relation, since , and a transitive relation: if and , then . Moreover, a shared divisor divides every integer linear combination:
Indeed, writing and gives . For example, and imply . This small observation explains why the Euclidean algorithm preserves common divisors, and why Bézout's identity can certify a greatest common divisor.
On the positive integers, divisibility is a partial order: if and , then . The restriction matters, since and although . The prime factorization viewpoint makes this order concrete: exactly when every prime valuation of is at most the corresponding prime valuation of . Thus one relation connects equal grouping, prime factorization, and modular arithmetic.
Book VII, definitions 3 and 5 of Euclid's Elements describe the corresponding positive-number relation through one number measuring another and through integer multiples. The sign and zero conventions above belong to the present integer formulation, rather than to those ancient definitions. [ref]
Division (mathematics) 2026-10-13
For real numbers and , division asks for the unique number satisfying . Equivalently, uses the multiplicative inverse of . This description separates the role of the denominator from the result: the quotient undoes a specified multiplication.
For example, is the number whose double is three, so it is exactly . A second interpretation asks how many portions of size fit into an amount ; the answer is one and a half portions. Equal sharing and measuring with a specified portion size lead to the same quotient, although the units assigned to the result can differ.
In the natural numbers, exact division need not be possible. Euclidean division instead keeps a remainder: , with . Thus seventeen objects form three complete groups of five with two left over. As a rational number, the same quotient is . The remainder and the fractional part describe the same unfinished group in different ways.
Division by zero cannot retain the unique-solution rule. For , the equation has no solution; for , every real number solves , so there is no unique quotient. This explains both failures through multiplication, rather than assigning a value that would contradict ordinary arithmetic. [ref]
Floor function Created 2026-09-24 Updated 2026-10-20
The floor is the greatest integer not exceeding the real number . Equivalently, exactly when , for an integer . The floor function is constant on each such half-open interval and has a discontinuity of a function at each integer.
For nonnegative integers and positive integers , is the number of complete groups of size that fit into items. With and , five complete groups use 100 items. Euclidean division writes , retaining the two-item remainder rather than treating the quotient as a number of complete groups.
Integer Created 2026-09-24 Updated 2026-10-18
An integer is a whole number, positive, negative, or zero. The set of all integers is
The positive integers are ; the negative integers are their opposites . Zero is neither positive nor negative. The nonnegative integers include zero and all the positive integers. On a number line, consecutive integers are one unit apart, negative integers lie to the left of zero, and positive integers lie to its right. [ref]
The integers let counting describe changes in both directions. If a counter starts at and increases by five, it reaches : . Decreasing that result by four gives . In addition on the number line, the sign of the added integer chooses the direction and its absolute value gives the distance. The additive inverse reverses the change made by .
Figure 1. . Starting at , a change of ends at . A subsequent change of ends at . The arrows indicate changes; the labelled points indicate integers. Zero separates the negative and positive sides. Details.
The integers have closure under a binary operation for addition, subtraction and multiplication: whenever , the results , and are still integers. Together these operations give the integers their ring structure.[ref] For instance, , , and . General division has no such closure: is a rational number but not an integer. Some divisions are exact, such as ; division by zero is undefined. Euclidean division instead produces an integer quotient and a remainder, so retains the information that ordinary division puts into the fraction .
An integer is the value, whereas its written numeral is an encoding. The decimal representation and the binary representation name the same integer. Changing positional notation changes how that value is displayed and how calculations are organized; it does not change the value itself.
Integer arithmetic 2026-10-13
Integer arithmetic computes with integers. Addition, subtraction and multiplication preserve integer values; division can instead return a quotient and remainder through Euclidean division. For example, gives five complete groups and a remainder of two. The ceiling count for fixed-size batches requires six groups to hold all 102 items.
Mathematical integers have no fixed size bound. A computer representation may have one, so an exact arithmetic formula still requires sufficient space for its inputs and intermediate values. The floor function and ceiling function define mathematical bounds independently of a chosen representation.
Least common multiple Created 2026-09-24 Updated 2026-10-20
For positive integers , their least common multiple is the smallest positive integer that is an integer multiple of both. Write it as . A positive common integer multiple always exists, since is one, but it can be larger than necessary.
For example, the positive integer multiples of begin , while those of begin . Their first positive coincidence is , so . Both also divide zero, but the word positive excludes zero from this minimum.
Suppose two events happen every twelve and eighteen days, and both happen at day . Their next meeting is at day , after three twelve-day intervals and two eighteen-day intervals. Through day , their common event times are .
Figure 1.
Events every 12 and 18 days, starting together, meet again every 36 days
. Each row marks the nonnegative integer multiples of its interval from zero through 72. The highlighted columns are shared; 36 is the first positive one and hence the least common multiple. Details.
The prime factorization explains why this coincidence occurs. For the integers and ,
A common integer multiple must contain at least the prime valuations required by each input. Taking the larger prime valuation at each prime number meets both requirements with no extra factors. The greatest common divisor uses the smaller prime valuations instead. This is the same coordinate comparison developed under prime factorization, applied in opposite directions.
Figure 2.
For 12 and 18, smaller prime valuations give greatest common divisor 6 and larger ones give least common multiple 36
. Bars show the exponents of the prime numbers two and three in , , and . The table makes the minimum and maximum in each column explicit. Details.
For any positive integers , the prime valuations give
The proof outline is one observation at each prime number: . Hence the two sides have identical prime factorizations. Numerically, . This also gives a calculation using the Euclidean algorithm for the greatest common divisor, without first finding the prime factors of both inputs.
Every positive common integer multiple is an integer multiple of the least common multiple, because its prime valuations must be at least the larger input prime valuations. Including negatives and zero, the common integer multiples of and are exactly for integers . For more than two positive integers, the same definition and rule of taking the largest prime valuations apply; one may also combine inputs successively. For example, .
For nonzero signed integers, take absolute values: . We extend the definition to zero by the convention , since zero is then the only common integer multiple; this is an extension, not a positive minimum. In particular must be handled separately from the displayed quotient, which would involve division by zero.
The least common multiple is useful for combining fractions with the smallest positive shared denominator. For example,
Its scheduling interpretation requires care about starting times. If the events start at integer days and , a common time must satisfy the integer congruences and . The Chinese remainder theorem for noncoprime moduli says a solution exists exactly when . If it exists, solutions form one congruence class modulo , but the first meeting need not be day . With starts , the first meeting is day and subsequent meetings are ; with , they never meet. The beauty of the least common multiple is the exact shared spacing, while the integer congruences determine whether and where the spacing begins.
Book VII, Proposition 34 of Euclid's Elements constructs the least common multiple of two numbers, and Proposition 36 extends the construction to three by first combining two of them. In modern notation this is . These are specific ancient treatments of the construction, rather than a claim about its first discovery. [ref] [ref]
A least-significant-digit radix sort processes numerical digits from smallest to largest place value. Fix integers and , and take complete sorting records whose sort keys satisfy . Use exactly positions in positional notation with radix , including leading zeros. At pass , apply a stable digit sort to the current array using
The floor function selects the integer quotient, and the remainder selects the current numerical digit. Move the complete sorting record, including its associated data. There are exactly passes, so this procedure terminates even for an empty array. The radix sort suffix invariant supplies its algorithm correctness argument.
For an original input, let the letters identify the attached data:
Here , , and leading zeros only align place values; represents the integer five. The exact pass ledger is:
After the units pass, the numerical digits are . The ties retain before and before before . This array is not yet ordered by its whole integer sort keys: still precedes . After the tens pass, the two-position suffixes are . In particular, now precedes : their tens numerical digits differ, so stable sorting does not require retaining their previous order. The hundreds pass produces the final sorted array, with all attached letters preserved.
Figure 1.
Three stable digit passes order successively longer suffixes
. Original decimal radix sort ledger. Each card carries an unchanged record label. Orange marks the numerical digit read in the current pass; green marks lower positions already processed. The suffix row beneath each pass shows precisely what is ordered, rather than claiming whole-key sortedness early. Details.
Long division 2026-10-14
Repeated division with remainder that determines successive digits of a quotient. To generate the fractional digits in base , multiply the current remainder by , divide by the denominator, and keep the resulting remainder for the next step.
Packed restoring division 2026-10-25
For an -bit unsigned dividend and positive divisor , read the dividend bits from most to least significant. If the processed prefix is , maintain with . Appending bit gives trial remainder ; append quotient bit and replace the remainder by . This preserves the quotient–remainder identity.
The old dividend and new quotient can share one -bit processor register: after iterations its value is , where . The shifted dividend occupies the upper positions and the accumulated quotient occupies the lower positions, so no information is overwritten. The high processor register holds . For an -bit dividend the next trial remainder is no larger than the next prefix, hence fits in bits through the final iteration. This last bound is specific to the dividend width; it must not be assumed for unrestricted multiword dividends.
Because are nonconstant, their classes in are nonzero: each has smaller degree than , so neither is a multiple of . Their product is zero. Thus the quotient has zero divisors.
If both factors have degree one, each quotient by one factor is isomorphic to , by evaluation at its rational root. Coprimality ensures the two roots are distinct. Part (c) therefore identifies the ring with . If , then in a field, so .
A ring may therefore have zero divisors without having nonzero nilpotent elements.
Factorization over gives
For , the factors and are coprime. The nonzero elements and multiply to zero, so the ring is neither an integral domain nor a field. Squaring coordinatewise shows it has no nonzero square-zero element.
For , the polynomial has no rational root and is irreducible of degree two over . The quotient is consequently a field, hence an integral domain, and has no nonzero square-zero element.
For , the class is nonzero by its degree, but . Thus this ring is neither an integral domain nor a field, and does have a nonzero square-zero element.
No two are isomorphic. Being a field separates from the other two; existence of a nonzero square-zero element separates from . Both properties are preserved by ring isomorphisms.
Suppose inductively that . In the quotient , the image of is central. Hence this quotient is generated by the image of together with a central subgroup, so its commutator subgroup lies in the image of . Pulling this back gives
The original assumption now gives . Starting with , induction proves for every . These products are subgroups because each is normal; no normality of is needed.
If is finitely generated, every quotient, including its abelianization , is finitely generated. Conversely, lift a finite generating set of that quotient to , and set . Then . For a nilpotent group, for some , and the established identity gives . Thus
All commutators of with lie in the central subgroup of . In the standard commutator identities, conjugation by elements of or therefore acts trivially on these commutators. Since is abelian, their order can also be reversed. Consequently
Thus the map is a homomorphism in each variable separately; this does not assert that it is a homomorphism from the direct product jointly.
It factors through in the first variable and in the second. If these finite quotient groups have representatives and , then the finite collection generates . Let be an exponent of . For every ,
Hence is a finitely generated abelian group of bounded exponent, and is finite. For instance its order is at most .
Now suppose is nilpotent and is finite. Induct on the nilpotency class . For , is its own abelianization and is finite. If , the group has smaller class and
since . By induction is finite. Apply the preceding result with and . Their commutator subgroup is . Both relevant centralizer quotients are finite, because their centralizers contain and is finite. Thus is finite. The extension of this finite normal subgroup by the finite quotient is finite. The converse follows because a quotient of a finite group is finite. Therefore
A Hausdorff space separates any two distinct points by disjoint open neighborhoods. For a subspace , intersect such neighborhoods in with to obtain disjoint neighborhoods in the subspace topology. Thus subspaces inherit the Hausdorff property.
If lies off the diagonal of a Hausdorff space's square, choose disjoint open neighborhoods of and of . The open rectangle contains the pair and avoids the diagonal. Therefore its complement is open and the diagonal is closed.
The map given by is continuous by the coordinate criterion from E3. The equality locus is and is closed as an inverse image of a closed set.
Let be the quotient map. If the quotient is Hausdorff, apply the same argument to in both coordinates:
is closed in .
Conversely suppose is closed and is open. Take two distinct quotient points, with representatives . Since , an open rectangle around it avoids . The images and are open quotient neighborhoods. They are disjoint, because a quotient point in their intersection would have equivalent representatives , , giving . Hence the quotient is Hausdorff. Thus closedness of the relation and openness of the quotient map suffice for a Hausdorff quotient.
First address the general splitting-field request. A splitting field is an extension in which the polynomial factors into linear factors and which is generated over the base field by its roots. For a degree- polynomial, adjoin a root of an irreducible factor. The quotient construction in the preceding parts gives an extension of degree at most . Remove the resulting linear factor and repeat, now with a polynomial of degree over that extension. Induction and the tower law give
The resulting field is generated by the roots and is a splitting field. Repeated roots or inseparability can only reduce the required degrees; separability was not used.
For the specified cubic, put and . Its splitting field is . Eisenstein criterion at two gives . This cubic field is real and therefore does not contain the nonreal , whose quadratic polynomial is . Consequently
Take . Every quotient class is a polynomial expression in with coefficients from , so . Substitution gives . Thus
This constructs a field containing a root even when no root existed in the original field.
Polynomial division gives a unique remainder of degree less than in every coset. Thus the classes
span the quotient as an -vector space. A linear combination of them that vanishes would be a polynomial of degree less than divisible by , so it is the zero polynomial. They are therefore linearly independent, proving