Integer linear combination Created 2026-10-14 Updated 2026-11-05
An integer linear combination is a linear combination whose coefficients are integers. The lattice basis definition uses unique integer linear combinations, rather than arbitrary real coefficients. For example, is a real linear combination of but is not an integer linear combination of that single vector.
Lattice algorithm 2026-11-05
In the geometry of numbers, a lattice algorithm works with a Euclidean lattice, usually specified by linearly independent vectors whose integer linear combinations formThe basis of a Euclidean lattice is not unique. For example, and generate the same Euclidean lattice as and : replace the second vector by itself minus 100 times the first. This integer linear combination is reversible, so it changes the representation without changing the set of Euclidean lattice points.
Lattice reduction seeks a more useful basis of a Euclidean lattice, with shorter and less nearly dependent vectors. The Lenstra-Lenstra-Lovász lattice basis reduction algorithm combines integer basis changes with Gram-Schmidt orthogonalization and comparisons controlling the quality of the result. It is a polynomial-time example, but it does not generally return an exactly shortest vector.[ref]
Factoring Polynomials with Rational Coefficients by Arjen K. Lenstra and others. Section1, basis reduction
Better bases make geometric searches and lattice-based cryptography analysis more practical. The geometry and the sizes of the integer coordinates both matter: a small number of arithmetic steps need not imply a small bit complexity. Linear Diophantine equation Created 2026-09-24 Updated 2026-11-05
A linear Diophantine equation in two variables is with integer coefficients and unknown integers . Assume are not both zero, and put .
The linear Diophantine equation solvability criterion gives a solution exactly when : every integer linear combination is divisible by , and Bézout's identity supplies a combination equal to which can be multiplied by . The extended Euclidean algorithm constructs the coefficients. All solutions of a linear Diophantine equation then describes the complete one-parameter family when both coefficients are nonzero.
For example, has , and all its solutions are , with . There is no solution with both coordinates nonnegative, since those inequalities require and . Thus an integer-solvability test does not automatically settle a problem requiring nonnegative integers. If both coefficients are zero, the separate equation has every integer pair as a solution when , and none otherwise.
First recall why the two-variable Bézout's identity follows from the Euclidean algorithm. The initial values are integer linear combinations of . At every subsequent step, is again an integer linear combination of . Therefore the last nonzero remainder, which is their greatest common divisor, has that form.
Put . The preceding argument supplies integers with . Applying the same argument to gives integers such thatAn integer divides exactly when it divides : if it divides , it divides , while itself divides both . Hence . Substituting the expression for provesThusare integers satisfying . This also explains how to construct the coefficients using two applications of the Euclidean algorithm.
Past exam of the mathematics course of the University of Oxford 2017 Prelims Mathematics IV 7 a i Solution Created 2026-10-25 Updated 2026-11-05
The Euclidean algorithm computes the greatest common divisor of two integers by repeated division with remainder. Start with , , interchanging them if necessary, and repeatedly writeuntil a zero remainder occurs. The positive remainders strictly decrease, so the process terminates. At each step the common divisors of are exactly the common divisors of , because . HenceIf one input is zero, the answer is the absolute value of the other; the usual convention sets . Back-substitution also expresses the greatest common divisor as an integer linear combination of the inputs, as in Bézout's identity.
Let be any positive integer. If divides and , it divides the integer linear combination . Conversely, if divides and , it divides . Thus and have exactly the same positive common divisors. Their greatest elements coincide:This greatest common divisor invariance is the step behind the Euclidean algorithm; it does not require , although that additional bound ensures the algorithm terminates. If the convention permits , the same argument works and for .
Back-substitute in the Euclidean algorithm to obtain an integer linear combination:Multiplying by gives the particular solution of the linear Diophantine equation. Subtracting it from any other solution and dividing by givesThe integers and are coprime, so divides . Writing forces . Conversely these expressions satisfy the original equation for every integer . Thus all solutions of a linear Diophantine equation here are
Primitive binary quadratic form Created 2026-09-24 Updated 2026-11-05
An integral binary quadratic form is primitive when . This condition concerns its polynomial coefficients, rather than the values of a particular representing pair. For example, is primitive, while has a common divisor two and represents only even integers.
Primitivity is invariant under proper equivalence. Expanding an integer change of variables expresses every new polynomial coefficient as an integer linear combination of the old ones, so every common divisor of the old coefficients divides the new ones. The integer inverse gives the converse. Their greatest common divisor, called the content, is therefore unchanged.
A primitive representation separately means in . Even a primitive form can have nonprimitive representations: for . A representation of a prime number, however, must use a coprime pair, since a common divisor would force to divide that prime. This observation drives the discriminant criterion for prime representation by a binary quadratic form.
Unimodular change of lattice basis 2026-10-14
Let be real square invertible matrices whose columns are lattice bases. They generate the same Euclidean lattice precisely when[ref]
If , multiplication by merely permutes the integer coordinate vectors, so the two generated sets agree. Conversely, equality of the generated sets means every column of either basis is an integer linear combination of the other. Hence and for integer matrices . Substitution followed by multiplication by gives , so the integer inverse criterion for a unimodular matrix applies.
Equal real linear spans are a weaker condition: any two real square invertible matrices span the same ambient vector space. Even equal covolumes do not force the same Euclidean lattice. The requirement that the change matrix and its inverse matrix have integer entries provides the missing arithmetic information.