In number theory, a Gaussian integer is a complex number whose real and imaginary parts are both integers. The Gaussian integers, with ordinary addition and multiplication of complex numbers, form an integral domain, usually written as 𝐙[i] or ℤ[i]. Gaussian integers share many properties with integers: they form a Euclidean domain, and thus have a Euclidean division and a Euclidean algorithm; this implies unique factorization and many related properties. However, Gaussian integers do not have a total order that respects arithmetic. Gaussian integers are algebraic integers and form the simplest ring of quadratic integers. Gaussian integers are named after the German mathematician Carl Friedrich Gauss.
Basic definitions The Gaussian integers are the set
𝐙[i]={a+bi∣a,b∈𝐙}, where i2=−1. In other words, a Gaussian integer is a complex number such that its real and imaginary parts are both integers. Since the Gaussian integers are closed under addition and multiplication, they form a commutative ring, which is a subring of the field of complex numbers. It is thus an integral domain. When considered within the complex plane, the Gaussian integers constitute the 2-dimensional square lattice. The conjugate of a complex number a + bi is the complex number a − bi. The norm N(a+bi) of a Gaussian integer a + bi is its product with its conjugate:
N(a+bi)=(a+bi)(a−bi)=a2+b2. The norm of a Gaussian integer is thus the square of its absolute value as a complex number. The norm of a Gaussian integer is a nonnegative integer, which is a sum of two squares. By the sum of two squares theorem, a norm cannot have a factor pk in its prime decomposition where p≡3(mod4) and k is odd (in particular, a norm is not itself congruent to 3 modulo 4). The norm is multiplicative, that is, one has
N(zw)=N(z)N(w), for every pair of Gaussian integers z, w. This can be shown directly, or by using the multiplicative property of the modulus of complex numbers. The units of the ring of Gaussian integers (that is the Gaussian integers whose multiplicative inverse is also a Gaussian integer) are precisely the Gaussian integers with norm 1, that is, 1, −1, i and −i.
Euclidean division
Gaussian integers have a Euclidean division (division with remainder) similar to that of integers and polynomials. This makes the Gaussian integers a Euclidean domain, and implies that Gaussian integers share with integers and polynomials many important properties such as the existence of a Euclidean algorithm for computing greatest common divisors, Bézout's identity, the principal ideal property, Euclid's lemma, the unique factorization theorem, and the Chinese remainder theorem, all of which can be proved using only Euclidean division. A Euclidean division algorithm takes, in the ring of Gaussian integers, a dividend a and divisor b ≠ 0, and produces a quotient q and remainder r such that
a=bq+randN(r)<N(b). In fact, one may make the remainder smaller:
a=bq+randN(r)≤N(b)2. Even with this better inequality, the quotient and the remainder are not necessarily unique, but one may refine the choice to ensure uniqueness. To prove this, one may consider the complex number quotient x + iy = a/b. There are unique integers m and n such that −1/2 < x − m ≤ 1/2 and −1/2 < y − n ≤ 1/2, and thus N(x − m + i(y − n)) ≤ 1/2. Taking q = m + in, one has
a=bq+r, with
r=b(x−m+i(y−n)), and
N(r)≤N(b)2. The choice of x − m and y − n in a semi-open interval is required for uniqueness. This definition of Euclidean division may be interpreted geometrically in the complex plane (see the figure), by remarking that the distance from a complex number ξ to the closest Gaussian integer is at most √2/2.
Principal ideals Since the ring G of Gaussian integers is a Euclidean domain, G is a principal ideal domain, which means that every ideal of G is principal. Explicitly, an ideal I is a subset of a ring R such that every sum of elements of I and every product of an element of I by an element of R belong to I. An ideal is principal if it consists of all multiples of a single element g, that is, it has the form
{gx∣x∈G}. In this case, one says that the ideal is generated by g or that g is a generator of the ideal. Every ideal I in the ring of the Gaussian integers is principal, because, if one chooses in I a nonzero element g of minimal norm, for every element x of I, the remainder of Euclidean division of x by g belongs also to I and has a norm that is smaller than that of g; because of the choice of g, this norm is zero, and thus the remainder is also zero. That is, one has x = qg, where q is the quotient. For any g, the ideal generated by g is also generated by any associate of g, that is, g, gi, −g, −gi; no other element generates the same ideal. As all the generators of an ideal have the same norm, the norm of an ideal is the norm of any of its generators. In some circumstances, it is useful to choose, once for all, a generator for each ideal. There are two classical ways for doing that, both considering first the ideals of odd norm. If the g = a + bi has an odd norm a2 + b2, then one of a and b is odd, and the other is even. Thus g has exactly one associate with a real part a that is odd and positive. In his original paper, Gauss made another choice, by choosing the unique associate such that the remainder of its division by 2 + 2i is one. In fact, as N(2 + 2i) = 8, the norm of the remainder is not greater than 4. As this norm is odd, and 3 is not the norm of a Gaussian integer, the norm of the remainder is one, that is, the remainder is a unit. Multiplying g by the inverse of this unit, one finds an associate that has one as a remainder, when divided by 2 + 2i. If the norm of g is even, then either g = 2kh or g = 2kh(1 + i), where k is a positive integer, and N(h) is odd. Thus, one chooses the associate of g for getting a h which fits the choice of the associates for elements of odd norm.
… excerpt ends here. Continue reading the full article.




