Arithmetic Created 2026-09-24 Updated 2026-10-13
Arithmetic studies operations on numbers: combining quantities by addition, finding differences by subtraction, scaling through multiplication, and reversing a nonzero scale through division. Its usefulness goes beyond producing an answer. A calculation can express how resources are shared, how a measurement changes with scale, or why two different descriptions of a quantity agree.
The allowed numbers matter. Start with the natural numbers . Counting collections gives , but removing three from two calls for the integer . Sharing three units equally between two recipients gives the rational number . These operations motivate larger number systems: integers supply additive inverses, and rational numbers supply division by nonzero integers. A real number can also express lengths such as a diagonal of Euclidean norm , which is not a rational number.
The beauty is that bookkeeping, geometry, and algebra can check one another. The same product counts three groups of six, measures the area of a rectangle, and splits as by distributivity. A number line makes negative integers visible as positions; a fraction records an exact share even when its decimal representation does not terminate. An arithmetic rule becomes easier to remember when these interpretations fit together.
Average power 2026-10-14
Average power divides the work over a nonzero interval by the elapsed time. For the same point mass driven from rest through by a net force, the displacement is . ThusThis average power is half the final instantaneous power because is a linear function of time, starting at zero. Its graph of a function bounds a triangle of area ; the horizontal line at average power encloses a rectangle with the same area. In general, an endpoint value of instantaneous power does not determine average power. [ref]
Axis-aligned bounding box 2026-10-14
An axis-aligned bounding box is a Cartesian product of closed intervals aligned with a chosen Cartesian coordinate system:Only the two opposite corners and need to be stored. In two dimensions it is a rectangle. Changing the Cartesian coordinate system can change how tightly the axis-aligned bounding box fits the same object.[ref]
For a nonempty finite set of points , the smallest such axis-aligned bounding box hasThese minimum and maximum values also enclose the convex hull of : each coordinate of a convex combination lies between the smallest and largest input coordinates. In particular, three vertices of a polygon determine the axis-aligned bounding box of a filled triangle. For a general nonempty compact set, the same formulas use all its points; inspecting only an arbitrary finite sample is insufficient.
Given nonempty boxes and , the closed interval convention givesEquivalently, reject as soon as or in any coordinate. The surviving set intersection has endpoints and . This is an exact box test, while its conclusion about enclosed objects remains a conservative enclosure test.[ref]
3.7 Bounding Boxes. §3.7, Intersect() and Overlaps(): coordinate-wise intersection and inclusive comparisons
Equality counts as touching: and share an edge, so their set intersection is nonempty. Replacing every in the overlap formula by tests intersection of the interiors of full-dimensional boxes and excludes this contact. A zero-width closed interval can represent a point or a lower-dimensional enclosure, and must not automatically be discarded when touching counts. A box with some is empty; test emptiness before applying rules intended for nonempty boxes. The broad phase must retain touching candidates whenever the narrow phase counts touching as a hit.
For nonempty boxes, the smallest enclosing axis-aligned bounding box of their set union isThis operation supplies the parent boxes in a bounding volume hierarchy. It is an enclosure of the set union, rather than generally the set union itself. In floating-point arithmetic, comparisons are conclusive only for endpoints that still enclose the intended exact objects; use certified bounds such as interval arithmetic with outward rounding when that guarantee is required.
// Target: analysis.bigb
Bounding volume hierarchy 2026-10-14
A bounding volume hierarchy is a data structure arranged as a rooted tree: leaves store objects, and each internal node stores a bounding volume enclosing its children in a rooted tree. Consequently, every node encloses all objects in its subtree. A common choice is a binary tree of axis-aligned bounding boxes. The objects assigned to sibling subtrees can be different even when their bounding volumes overlap.[ref]
Here is an exact two-dimensional example. Use the triangles from bounding volume, together with having vertices of a polygon and having vertices of a polygon . Group under , and under . Their parent axis-aligned bounding boxes and the box at the root of a tree areThe diagram shows all seven nodes. Taking the coordinate-wise minimum and maximum of the two child boxes constructs each parent box; the resulting box contains the set union of the children, and can also contain empty space between them.
Four exact triangles, their enclosing boxes, and a seven-node bounding volume hierarchy arranged as a binary tree
. Details. A bounding volume hierarchy traversal starts at the root of a tree and discards a subtree when its bounding volume misses the query. Accepted internal nodes expose their children; accepted leaves supply candidates for actual shape tests. Box2D's official Collision: Dynamic Tree describes axis-aligned bounding box region queries that return overlapping leaf boxes. A query box that bounds a different query shape can produce additional false candidates.
For the closed query rectangleleft-first depth-first search tests the node boxes in order: root, , , , . The first four overlap ; does not, because its smallest -coordinate is . Pruning skips both and . Five box tests leave two broad phase candidates. The narrow phase rejects , since throughout , and accepts : the point belongs to both and . There are two detailed shape tests and one true hit.
An exact rectangle query prunes the right subtree and leaves two box candidates but only one triangle hit
. Details. For a query asking for all intersections, time complexity depends on the number of visited nodes and the cost of each candidate shape test. With fixed dimension and constant bookkeeping cost per node, the work iswhere counts candidate objects and is Big O notation. A balanced binary tree has small height of a binary tree, but a query can enter both children at every level. In this example a query containing visits all seven nodes and tests all four triangles. More generally, a full binary tree with single-object leaves has nodes, so such a query takes work for constant-cost shape tests even when its height of a binary tree is . Listing hits itself requires outputs. Small height alone gives no unconditional logarithmic query bound.
For collision detection between two bounding volume hierarchies, traverse pairs of nodes: reject disjoint pairs of bounding volumes, expand a nonleaf member of an accepted pair, and apply the narrow phase at accepted leaf pairs. A single collection's self-query must exclude pairing an object with itself and avoid duplicate unordered pairs. If every object overlaps every other object, reporting all pairs already requires results. Construction quality, empty space in boxes and the queries determine how much pruning is useful.[ref]
For a short correctness outline, an object is enclosed by its leaf box, and each child box is enclosed by its parent box. Repeated subset relations carry this property to every ancestor. A true query intersection therefore prevents rejection at every ancestor of the object's leaf. Updating leaf boxes after motion also requires restoring all affected ancestor bounds before querying.
Brunn-Minkowski theorem 2026-10-14
Let and let be nonempty Lebesgue measurable sets with finite Lebesgue measures. Assume that is also a Lebesgue measurable set; its measure may be infinite. ThenHere denotes -dimensional Lebesgue measure in Euclidean space. Nonempty compact sets and nonempty open sets of finite measure satisfy the measurability assumptions. Measurability of arbitrary summands alone does not guarantee measurability of their Minkowski sum. The theorem does not require convexity. See R. J. Gardner, The Brunn-Minkowski Inequality (2002), Theorem 4.1 and the following remarks.
The th root converts a volume into a quantity that scales like a length: uniform dilation gives for . In the Euclidean plane the theorem compares square roots of areas, not the areas themselves. For the two rectangles above it reads . Equivalently their sum has area . For the two disks, it reads , an equality. These are exact geometric examples, not measured data.
Applying the theorem to the scaled sets gives, whenever that sum is a Lebesgue measurable set,For convex bodies, this means the root-volume of the interpolated shape lies above the straight line between the input root-volumes. In fact is a concave function on : convexity gives for , so interpolating two intermediate shapes gives another intermediate shape and the same inequality applies. The beauty is that no particular boundary shape appears in the bound: possible pointwise displacements force a minimum amount of space.
For convex bodies , equality holds exactly when they are homothetic convex bodies, meaning for some vector and . This equality qualification is part of the Brunn-Minkowski theorem for convex bodies. [ref]
https://sites.stat.washington.edu/jaw/COURSES/520s/523/HO.523.20/Gardner.BullAMS.02.pdf. Gardner (2002), introduction, equation 2 and its equality condition
For positive-sided axis-aligned rectangles, the comparison can be checked directly:Equality requires : the rectangles must have the same aspect ratio. Our and rectangles do not. All positive-radius disks are homothetic convex bodies, explaining their equality.Do not apply that equality criterion without its hypotheses. If , its Lebesgue measure is zero and is a translation of , so equality holds even for nonconvex . Also, changing a summand on a null set can change the measure of its Minkowski sum: in one dimension, and both have measure , but has measure . Removing the single extra point restores equality with sum measure . Thus merely being equal almost everywhere to homothetic convex bodies is not a sufficient equality test for arbitrary sets.
The Brunn-Minkowski theorem also bounds the collision-region volume: for positive-volume compact sets , reflection preserves Lebesgue measure, so . In the toy collision example this gives area at least , compared with the exact area . A lower bound alone does not identify safe reference positions; the actual Minkowski sum supplies those.
Cauchy's functional equation Created 2026-09-24 Updated 2026-10-18
Cauchy's functional equation asks for functions satisfyingThe identity must hold for every pair of real numbers, and a solution is an additive function. It says that combining two inputs before applying gives the same result as combining their outputs.[ref]
Remarks on the Cauchy functional equation and variations of it by Daniel Reem. Daniel Reem, Remarks on the Cauchy functional equation and variations of it, version 7, §1.1, Eq. (1) and the real domain
For example, satisfies the identity because . At and the two sides giveFor positive widths, a rectangle of height three makes this visible: cutting its width into and partitions its area into and . The same identity also holds for negative inputs, where is a signed output rather than an ordinary area.
The function f(x)=3x preserves addition: partitioning a rectangle and checking exact rational grid sums
. Details. Every function with a fixed real number solves Cauchy's functional equation. The surprising question is whether these are all the solutions. Rational homogeneity of an additive function forces for every rational number , but reaching an irrational number requires an additional argument. Continuity at just one point or being a bounded function on an interval of positive length supplies that argument; without such a condition, discontinuous additive functions exist.[ref]
Remarks on the Cauchy functional equation and variations of it by Daniel Reem. Reem, version 7, §1.1, printed p. 2: classical continuity and bounded-interval conditions and nonlinear solutions
This makes Cauchy's functional equation a useful test of the boundary between algebra and analysis: a rule about addition fixes all rational multiples, while a tiny amount of continuity fixes the entire real line. For example, the continuous exponential functional equation reduces to an additive function after taking a logarithm, so this result explains why its nonzero solutions are exponential functions.
Change of variables formula Created 2026-09-24 Updated 2026-10-14
The change of variables formula expresses an integral in coordinates that make its integrand or its region simpler. Three ingredients change together: the region, the function being integrated, and the element of area or volume. The last change is measured by the absolute Jacobian determinant; forgetting it amounts to counting transformed cells as though their sizes had stayed the same.
In one dimension, substitution is the integrated chain rule. If is continuously differentiable on and is continuous on its image, thenThese are directed definite integrals: if decreases, the transformed endpoints reverse. This identity does not require to be injective, because an antiderivative composed with already accounts for any backtracking.[ref]
For a concrete computation, set , so . The endpoints become :The numerator is precisely the derivative of the expression in the denominator. Substitution reveals the familiar natural logarithm hidden inside this rational function. Keeping the original endpoints after changing the integrand would describe a different integral.
For the elementary two-dimensional theorem, let be a diffeomorphism between open sets in the plane, let be a bounded region with piecewise smooth boundary, and let be continuous on , with the displayed integrals finite. ThenHere is the Jacobian matrix. The diffeomorphism assumption means a bijection with a continuously differentiable inverse, and ensures a nonzero Jacobian determinant. This excludes overlapping sheets; the more general area formula handles multiplicity.[ref]
Take and the linear mapIts inverse is . The square becomes a parallelogram with vertices : base two, height one, area two. Consequently . A nonconstant integrand changes too: .
The direction of the map matters when selecting the factor. Here goes from the new coordinates to the original coordinates, so the factor is two. Its inverse has Jacobian determinant , appropriate for converting area in the opposite direction. Writing down the map before computing its Jacobian matrix prevents a reciprocal-factor error.
A unit square becomes a parallelogram of area two; reflection changes the determinant sign but preserves area
. Details. Now reflect the image vertically: has Jacobian determinant , but still produces area two. The sign records reversal of the orientation of a vector space; ordinary area uses its absolute value. For oriented differential forms, the pullback of a differential form instead retains the signed determinant.[ref]
https://math.mit.edu/classes/18.952/spring2013/docs/book.pdf. MIT 18.952 notes: Integration of forms, Chapter 3
The geometric beauty is that a nonlinear differentiable map has a local linear approximation: tiny rectangles behave approximately like these parallelograms. Summing their scaled contributions gives the change of variables formula. In polar coordinates this factor is , explaining ; equal angular steps cover more area farther from the origin. Choosing suitable coordinates can simplify both the boundary and the integrand.[ref]
Pad a partition in a rectangle with zero rows until it has entries, and put . The complementary rotated diagram has row lengths . This is again a partition in a rectangle, and its size is . Repeating the operation recovers the original integer partition, so it gives a bijection between diagrams of size and diagrams of size . Consequently the coefficients of the Gaussian polynomial read the same in either direction. The displayed identity can be interpreted as an identity of Laurent polynomials; it does not require substituting at .
For the two-by-two rectangle, the empty diagram pairs with , and pairs with ; and each map to themselves. This establishes symmetry, while unimodality of Gaussian binomial coefficients is a stronger statement about the growth and decrease of successive coefficients.
Completing the square by area 2026-10-18
Start with a square of side length and add two rectangles, each with side lengths and . The total area is . Place the rectangles along two adjacent sides of the square: the missing corner is a by square, of area . Filling it produces a square of side length .
The area picture explains why the half-coefficient is squared. It also separates two operations that are easy to confuse: adding changes , whereas adding and subtracting preserves the expression. When solving an equation instead, adding to one side requires adding to the other side too.
Convex body 2026-10-14
A convex body in is a compact convex set with nonempty interior in the ambient Euclidean space. It consequently has positive finite Lebesgue measure. A filled rectangle with positive side lengths and a closed positive-radius Euclidean disk are planar convex bodies. A line segment in has empty ambient interior and is not a convex body under this convention. This is the convention used in the Brunn-Minkowski theorem. [ref]
https://sites.stat.washington.edu/jaw/COURSES/520s/523/HO.523.20/Gardner.BullAMS.02.pdf. Gardner (2002), introduction
Cyclic group of order four and Klein four-group Created 2026-10-14 Updated 2026-10-31
The finite cyclic group and the Klein four-group are both abelian groups of order four. In , composition is addition modulo four. In , label the elements and add each coordinate modulo two. For example, and .
Two abelian groups of order four have different addition tables
. Each cell is the row element plus the column element. Diagonal cells record adding an element to itself. In , only and return to zero after two additions. In the Klein four-group, every diagonal cell is the identity element . The symmetric tables show commutativity, while the different doubling behavior distinguishes the groups. Details.The order of a group element is preserved by a group isomorphism: an equation holds exactly when its image satisfies the same equation. In , both and have order four. In , each nonidentity element has order two. Hence these groups are not isomorphic, despite having the same order of a finite group. No relabelling can repair this discrepancy.
For a geometric model of , take the symmetries of a non-square rectangle: the identity element, reflection in its horizontal axis, reflection in its vertical axis, and rotation through . The two reflections commute, and their composite is the half-turn. Every nonidentity motion is its own inverse element. This makes the two binary switches concrete: choosing whether to apply each reflection specifies all four motions. The case of abelian groups of prime-square order generalizes this distinction from to any prime .
Euclidean algorithm Created 2026-09-24 Updated 2026-10-20
For positive integers , the Euclidean algorithm repeatedly performs division with remainder: write with , then replace by until the second entry is zero. The final nonzero entry is their greatest common divisor. A remainder preserves the set of common divisors: an integer divides and exactly when it divides and . The positive remainders strictly decrease, so the calculation terminates.
The complete calculation for and isHence . The fraction reduces to by dividing numerator and denominator by that common factor. The same remainder calculation has a geometric interpretation: remove squares from a -by- rectangle, then repeat on the remaining strip. Each division step records how many equal squares fit and the width of the new strip.
Successive square removals record the Euclidean algorithm for 252 and 198
. Details. The procedure does more than test individual divisors. Each step replaces the whole common-divisor problem by a smaller equivalent one. Euclid's Book VII, Proposition 2 describes the corresponding repeated-subtraction construction; batching those subtractions into division with remainder gives the present formulation. [ref]
https://mathcs.clarku.edu/~djoyce/java/elements/bookVII/propVII2.html. Euclid, Elements VII.2, greatest common measure
Euclidean geometry Created 2026-09-24 Updated 2026-10-13
Euclidean geometry describes flat Euclidean space using lengths, angles, and rigid motions. A coordinate realization uses points , Euclidean distanceand angles determined by the dot product. The coordinate axes are a convenience: translations and rotations change coordinates while preserving these measurements. This makes Euclidean geometry useful for comparing figures and converting measurements along different directions into a single distance.
In the Euclidean plane, through a point outside a line there is exactly one parallel line. This is a standard equivalent formulation of the parallel postulate. Euclid's fifth postulate in the Elements instead describes when two lines meet using the interior angles made by a crossing line.[ref] The assumption has consequences we often take for granted: a triangle's interior angles sum to , and similar triangles can differ in size while keeping their angles. Comparing with spherical geometry reveals that these are properties of a particular geometry.
As a computed example, the diagonal from to in a rectangle has length . The Pythagorean theorem explains why perpendicular contributions add as squares. If the directions cease to meet at a right angle, the law of cosines supplies the missing angle-dependent term. The beauty is that a single distance formula unites geometric constructions, coordinate calculations, and orthogonality in linear algebra.
Make the assumptions visible: in a Cartesian coordinate system with orthogonal axes and the same length unit on each axis, take , and . The vectors and have dot product zero, establishing a right angle at before using the Pythagorean theorem. A sketch that merely looks like a right triangle supplies no such guarantee. Likewise, an image stretched horizontally and vertically by different amounts can distort both lengths and angles; a displayed shape and the assumptions defining it must be kept separate.
For a less origin-dependent measurement, take and . Their displacement vector is , so their Euclidean distance is again . Its Euclidean norm records the direct separation, whereas travelling first horizontally and then vertically covers length . This connects measuring a diagonal to locating two positions from a Cartesian coordinate system. A translation changes where the positions are recorded without changing their separation; a rotation changes the component values without changing the Euclidean norm.
Geometry and topology Created 2026-09-24 Updated 2026-10-13
How much information about a shape do we need to keep? Euclidean geometry retains lengths and angles, allowing questions about the diagonal of a rectangle or the shortest route between two points. Topology retains the structure preserved by a homeomorphism, allowing questions about connectedness and whether a loop can shrink to a point, as recorded by the fundamental group. These are different levels of description of the same object.
For example, stretching a circle horizontally produces an ellipse. The stretching map and its inverse are continuous maps, so it gives a homeomorphism: the two curves have the same topology. It changes some Euclidean distances, however, so it is not an isometry. This distinction helps separate essential structure from a particular drawing, while explaining why measuring a shape requires more information than recognizing its topology.
The choice of geometry matters too. A Euclidean geometry triangle has interior angles summing to , but a spherical triangle can have three right angles. Spherical geometry turns this apparent surprise into a measurement: the excess of the angle sum over determines the area. Begin with the Pythagorean theorem for flat measurements, then compare the spherical triangle below to see curvature change the rules.
Green theorem Created 2026-09-24 Updated 2026-10-18
Green’s theorem converts circulation around a positively oriented planar boundary into the area integral of scalar curl.
Let be a bounded region in the Euclidean plane whose boundary is a finite union of disjoint, piecewise smooth simple closed curves. Suppose the vector field is continuously differentiable on an open set containing the whole closed region. With positive boundary orientation,The partial derivatives give the scalar curl: the third component of the curl of . For a parametric curve , the boundary line integral has integrand .[ref]
6.4 Green's Theorem. Calculus Volume 3 by Gilbert Strang and others; §6.4, Theorem 6.12, equation (6.13); circulation form and its hypotheses
Positive boundary orientation keeps on the left as one walks along each boundary component: the outer curve is counterclockwise, and curves around holes are clockwise. Every component belongs in the line integral. The vector field must be regular throughout , but need not extend into a hole.[ref]
V5. Simply-Connected Regions. 18.02SC Multivariable Calculus, Fall 2010; V5. Simply-Connected Regions, p. 1, §1, Extended Green's Theorem, equation (1) and subdivision proof
The useful tradeoff is between boundary and interior: integrate tangential components along a curve, or integrate a partial derivative over a region, whichever is simpler. The boundary formula for planar area uses this freedom in the opposite direction, recovering area from a line integral. As a planar case of Stokes theorem, Green theorem also explains why a local curl can determine a complete boundary measurement while leaving room for the global obstruction in Green theorem with holes.
A short proof starts with a rectangle . Add its four positively oriented edge line integrals:The fundamental theorem of calculus turns the differences into integrals of and ; Fubini's theorem then gives the required double integral. On subdividing a region, adjacent edge line integrals cancel because their directions oppose. For curved boundaries, the proof uses pieces bounded by graphs and double integrals; cancellation works the same way. This is the geometric reason only the region's complete boundary survives.[ref]
Green theorem circulation examples 2026-10-18
Take the vector field . Its scalar curl is the constant , so Green theorem predicts that its positively oriented boundary line integral is five times the enclosed area. This one field makes both a round and a rectangular calculation transparent.
For the circle , choose the counterclockwise parametric equations , . Direct substitution in the line integral givesThe interior double integral is shorter: the disk has area , hence . Reversing the boundary orientation gives .
Homothetic convex bodies Created 2026-10-14 Updated 2026-10-20
Two convex bodies are homothetic convex bodies if one is a translation of a positive uniform dilation of the other. Their lengths scale by and their volumes by . Closed disks of positive radii are homothetic convex bodies; axis-aligned positive-sided rectangles are homothetic convex bodies exactly when their aspect ratios agree. The Brunn-Minkowski theorem characterizes this relation by equality of root-volumes in Minkowski addition.
Lagrange's four-square theorem 2026-10-13
Every nonnegative integer is a sum of squares with four terms, with zero terms allowed. Precisely, for every integer , there exist nonnegative integers such thatAllowing arbitrary integer roots gives the same statement: changing a root to its absolute value leaves the resulting square number unchanged. Four is a uniform upper bound on the number of nonzero terms, rather than a demand for four positive terms. Repeated square numbers are allowed. Conrad states the positive case and explicitly explains the role of zero terms; follows by taking all four roots zero. [ref]
https://kconrad.math.uconn.edu/blurbs/ugradnumthy/descent.pdf. Keith Conrad, Proofs by Descent, Section 6, opening paragraph and Theorem 6.6
The small cases make the convention visible:In particular, could not be a sum of squares with four strictly positive roots, since each term would be at least one. Geometrically, a square of integer side length has area : the theorem says that any nonnegative whole-number total area can be split into at most four such square areas. It does not assert that those squares tile one larger square or a prescribed rectangle.
Why does the fourth term matter? Two square numbers do not suffice for : in modular arithmetic, a square number has remainder zero or one modulo four, so their sum cannot be three modulo four. The sum of two squares theorem gives a complete criterion for the positive integers representable with two terms. Even three terms leave gaps. A square number has remainder or modulo eight; adding three of these, with repetition allowed, never gives seven modulo eight. Thus cannot be sums of three square numbers, although Lagrange's four-square theorem represents all of them with four. This also proves that the bound four cannot be reduced to three.
The modulo-eight obstruction is not the only way that three terms can fail. For example, needs four: if three square numbers added to , their remainders modulo four would force all three roots even. Dividing by four would then express as a sum of three square numbers, contradicting the preceding calculation. These short checks explain the examples without requiring a full classification of sums of three square numbers.
The practical benefit of Lagrange's four-square theorem is an existence guarantee for a family of Diophantine equations: for every nonnegative integer , the displayed equation has an integer solution. It does not specify a unique solution. For instance, . To find a representation by a finite search, enumerate and test the sum. The floor function supplies a finite bound because no single term can exceed , and sorting roots removes duplicate orderings without discarding any possible sum. The theorem guarantees that the search succeeds.
A greedy algorithm that repeatedly subtracts the largest available square number need not find four terms: for it chooses , while uses four. The appeal of the theorem is this gap between local choices and a global promise: individual square numbers become farther apart, and two or three terms leave arithmetic obstructions, yet four terms cover every nonnegative integer.
For historical orientation, Conrad dates Lagrange's four-square theorem to and identifies the memoir as Démonstration d'un théorème d'arithmétique: it appeared in the Berlin Academy's volume for the year , published in , pages –. Keeping the volume year and publication year distinct avoids an apparent conflict between dates. [ref]
https://kconrad.math.uconn.edu/blurbs/ugradnumthy/descent.pdf. Keith Conrad, Proofs by Descent, Theorem 6.6 and reference 11
Use lattice paths with north steps and east steps, beginning at . Let be the sum of the horizontal coordinates of its north steps, equivalently the number of unit cells to their left inside the -by- rectangle. A north step in zero-based word position has earlier north steps, so its horizontal coordinate is . The Gaussian binomial coefficient recurrence therefore counts these lattice paths with weight .
A short proof outline connects Gauss's lemma to counting points with integer coordinates. For distinct odd primes , define the two floor function sumsThe parity form of Gauss's lemma gives and . In the open rectangle , , the line separates points below it from points above it. None lies on the line, because and coprimality would force . The total is therefore . Combining that count with the parity identities gives quadratic reciprocity.[ref]
Quadratic Reciprocity by Ben Lynn. Ben Lynn, Quadratic Reciprocity, first theorem and proof of the Law of Quadratic Reciprocity: floor-sum parity and the separating-line count










