2-adic valuation Created 2026-09-24 Updated 2026-09-28
An additive nontrivial valuation on the rational field is equivalent to exactly one P-adic valuation. Integers have nonnegative values; some prime must have positive value, and Bézout's identity prevents two distinct primes from doing so. Unique factorization then gives the formula, with in the real-valued case. The trivial valuation is a separate possibility if admitted by the definition.
Two p-adic integers agree in their first low-order p-adic digits precisely when their difference is divisible by . Equivalently,
If the first differing digit has index , the remaining leading coefficient is nonzero modulo , giving exact P-adic valuation and p-adic metric . If no digit differs, the two elements are equal and their distance is zero. Truncating at therefore gives , with a stricter bound possible when further digits are zero.
After clearing denominators in a matrix, for every disjoint pair of index sets with nonempty and outside the linear span of the -columns, choose an integer linear functional vanishing on those columns but not on the indicated sum. Choose a prime number dividing none of the finitely many nonzero evaluations. The last nonzero digit coloring for this prime, applied to a monochromatic positive solution, groups coordinates into blocks by P-adic valuation. Applying the appropriate functional and reducing modulo the prime shows that each block sum lies in the linear span of all earlier columns. This proves necessity in Rado's theorem without an asymptotic limiting argument.
Kummer's theorem 2026-10-18
For a prime number and integers , the P-adic valuation of the binomial coefficient equals the number of arithmetic carries in the base- addition of and .[ref] Indeed, subtract the two denominator factorial valuations in the Legendre formula:
Each arithmetic carry accounts for one unit of this quotient by subadditivity of the base-p digit sum. In particular, the binomial coefficient is divisible by exactly when at least one carry occurs.
For , the factorial counts give
The matching base-p expansions are and . Their units add to two; the next column gives , sending one carry into the nines column. That column then gives , and no further carry occurs. The result is . The base-p digit sums check the same result: . Consequently is divisible by three but not by nine.
Figure 1. . On the left, the base-p expansion gives . On the right, has exactly one carry, from the threes column into the nines column. Kummer's theorem therefore gives . Details.
Legendre's formula Created 2026-10-14 Updated 2026-10-18
For a nonnegative integer and a prime number , the Legendre formula computes the prime exponent in a factorial without forming that huge product:
Here is the floor function. The sum is finite: every term with is zero. When , all terms vanish, agreeing with and . The prime number hypothesis matters: a composite number does not give the same P-adic valuation or additive prime exponent. For example, the floor sum with is one, whereas divides .
Why count multiples repeatedly? Each multiple of in contributes one factor of ; each multiple of contributes another; and so on. A factor with P-adic valuation occurs in exactly the first counts. Adding those contributions proves the formula.[ref]
For the original example ,
The five multiples each contribute a second factor of three. The factor contributes a third, so it appears in all three rows. Equivalently, among there are eleven factors of P-adic valuation one, four of valuation two, and one of valuation three: . Thus divides , while does not.
Figure 1.
Nested multiples count the factors of three in
. Each colored cell contributes one to the P-adic valuation. Multiples of nine occur in two rows, and occurs in three. Summing by rows gives ; summing by columns gives . Factors not divisible by three contribute zero and are omitted. Details.
Repeated Euclidean division provides a practical evaluation: replace by , starting from , and add each new quotient until it is zero. This uses only the successive quotients for the example. The same calculation handles divisibility of binomial coefficients, where the P-adic valuations of the denominator factorials are subtracted.
p-adic absolute value Created 2026-09-24 Updated 2026-10-14
Fix a prime number . Write a nonzero rational number as , where and the nonzero integers are not divisible by . The exponent is uniquely determined. Its P-adic valuation is this signed exponent : equivalently, for any nonzero integer numerator and denominator ,
Factors of in the numerator decrease the p-adic absolute value; factors in the denominator increase it. For the computations are:
Rational number FactorizationP-adic valuation 2-adic absolute value
Not applicable by convention
This is an absolute value on a field measuring divisibility, rather than the magnitude on a real number number line. It satisfies
The proof comes directly from P-adic valuations: exponents add in a product of numbers, and extracting a common power of from a sum gives . If the two P-adic valuations differ, the remaining term with smaller exponent cannot cancel modulo , so equality holds. Thus the p-adic absolute value is a Non-Archimedean absolute value. [ref]
The metric makes two rational numbers close when their difference contains a high power of . This packages successive modular congruences into a numerical error estimate, allowing convergence in a metric space and convergent series to encode exact arithmetic information.
P-adic columns lemma Created 2026-09-24 Updated 2026-09-24
The necessity direction in Rado's theorem colors an integer using initial data from a P-adic valuation. Applying partition regularity and grouping the coordinates of a monochromatic solution by valuation yields the blocks in the columns property; reduction modulo successively higher powers of supplies the required linear dependences.
P-adic number Created 2026-10-03 Updated 2026-10-14
For a prime number , a p-adic number is an element of the field obtained by completing the rational numbers for the metric . Here is the p-adic absolute value. The Cauchy-sequence construction of a metric completion supplies limits for every Cauchy sequence, and addition, multiplication, and the p-adic absolute value extend to this complete metric space. The rational numbers form a dense subset. [ref]
For a concrete example with , consider the partial sums of a geometric series:
The first values have distances from in the 2-adic absolute value. Consequently
This is a statement about convergence in a metric space with the 2-adic absolute value. In the ordinary real number absolute value, the same partial sums grow without bound. Choosing a metric changes which approximation errors shrink.
More generally every nonzero P-adic number has a unique digit expansion
Only finitely many negative powers occur, while positive powers can continue indefinitely. Written with the highest powers on the left, the digits extend infinitely to the left; for example the P-adic number at is written . The p-adic integers are exactly the elements with , whose digit expansions use only nonnegative powers. [ref]
The construction can be understood through modular arithmetic. Successively choose the low-order digits to agree modulo , , and higher powers. After fixing digits below , the remaining error has p-adic absolute value at most ; the partial sums form a Cauchy sequence, so completeness supplies a limit. If two expansions first differ at position , their difference has P-adic valuation , proving uniqueness. This turns compatible finite congruence classes into one exact number. In particular, Hensel's lemma upgrades suitable approximate roots of a polynomial modulo powers of into roots in the p-adic integers.
P-adic valuation Created 2026-09-24 Updated 2026-10-13
For a prime number and a nonzero integer , the P-adic valuation counts the exponent of in its prime factorization:
For , it gives , , and . The sign of a nonzero integer does not change these prime exponents. Relative to an ordered factor base, the valuations supply the coordinates of its exponent vector.
The P-adic valuation extends to nonzero rational numbers by . For example, records a factor in the denominator instead of the numerator. Multiplication adds valuations, ; this is the arithmetic reason why adding exponent vectors can make a product a square. In particular, a positive integer is a square of a number precisely when all its prime exponents are even integers, the criterion used by a factor base.
No prime works. The P-adic valuation induces a well-defined homomorphism
The class of maps to one, whereas the class of maps to zero. They therefore cannot be equal. Equivalently, cannot be a th power because its valuation is not divisible by .
The strict inequality means . Taking gives , so
For the other expression, if then and its P-adic valuation is zero. If , then has P-adic valuation exactly one. It can never have valuation greater than two. Thus no such integer exists for the second strict inequality.
For a rational matrix , write its columns as . It is partition regular if every finite colouring of admits positive integers , all of one colour, with . Repeated coordinates are allowed. The columns condition is an ordered partition
into nonempty blocks such that
Rado's theorem states that a rational matrix is partition regular if and only if it satisfies the columns condition. We prove both implications.
For necessity, clear denominators so the columns are integral. For every disjoint pair of index sets with and
choose a rational linear functional annihilating all columns in but not . Such a functional exists by extending a basis of the indicated linear span to include , prescribing zero on the former and one on the latter. Clearing its denominators produces an integer-coefficient functional with a nonzero integer. There are only finitely many pairs . Choose a prime number dividing none of these nonzero evaluations; if there are no bad pairs, choose any prime.
Use the last nonzero digit coloring for this prime. Namely, write with and colour by . By partition regularity, obtain a positive monochromatic solution. Let the distinct P-adic valuations of its coordinates be
and put . All unit parts have a common nonzero residue modulo .
For a block , let . If its column sum were outside the earlier linear span, apply to the equation . Earlier-block contributions are exactly zero. Divide the remaining equation by and reduce modulo . Higher-valuation terms vanish, leaving
This contradicts the choice of and . Consequently every block sum lies in the earlier linear span. For that span is , so its sum is zero. This proves the columns condition by the finite separating-functional proof of the columns condition.
For sufficiency, suppose the blocks satisfy the columns condition. Choose rational coefficients , for , such that
Take a positive integer clearing all their denominators and an integer at least as large as every . An M-p-c set with generators consists of all values
with every such value positive. The generators are therefore chosen with . Positivity is part of the configuration, not achieved by deleting inconvenient values.
Use the permitted monochromatic m-p-c set theorem to obtain one such monochromatic set. For each , put
Every is a positive element of that set, because its non-leading coefficients are integers of magnitude at most . In the sum , the coefficient of is , and the coefficient of each with is
Thus . This is an explicit Rado solution inside an m-p-c set and proves sufficiency.
For the Finite sums theorem, define
To deduce its monochromaticity from Rado's theorem, introduce variables for all nonempty and equations
Let be their coefficient matrix, and partition its columns by . For a fixed , the vector with -coordinate when , and otherwise, solves this homogeneous system: in every row both sides count whether belongs to its indexing set. Hence
The first block sum is zero, and each later block sum lies in the linear span of earlier columns. This proves the columns partition for finite-sums systems. The positive monochromatic solution supplied by Rado's theorem has , and its other coordinates are exactly all the nonempty finite sums. Therefore is monochromatic. For a singleton is immediate. Equivalently, the full positive M-p-c set with directly contains every such sum, by taking its leading index to be the least index in .
For a rational matrix with columns , partition regularity means that every finite colouring of the positive integers admits a positive monochromatic vector with . Repeated coordinates are allowed. The columns condition is an ordered partition into nonempty blocks such that
Rado's theorem says that is partition regular if and only if it satisfies the columns condition. We prove both directions.
For necessity, clear denominators so the columns are integer vectors. For every pair of disjoint index sets with for which is not in the rational linear span of the I-columns, choose an integer linear functional that vanishes on those I-columns but not on that sum. Such a functional exists by finite-dimensional linear algebra; clear its rational denominators. There are only finitely many pairs, so choose a prime number dividing none of the nonzero integers
If there are no offending pairs, any prime number suffices.
Colour a positive integer , , by . This is the last nonzero digit coloring, using colours. Partition regularity gives a positive monochromatic solution. Group its coordinate indices by their distinct P-adic valuations , writing . All units have the same nonzero residue modulo .
For each , let . If its block sum failed the required span condition, apply the chosen to . The earlier terms vanish exactly, not just modulo a power of . Divide by ; terms with later valuations are still divisible by . Reduction modulo then yields
contrary to the choice of . Thus every required span relation holds, and with the first block sum is zero. This is the finite separating-functional proof of the columns condition; it avoids an unjustified passage from congruences to rational equality.
For sufficiency, assume the columns condition. Choose rational coefficients , for and , such that
Choose a positive integer clearing every denominator, and a positive integer , taking if the list is empty. By the allowed monochromatic m-p-c set theorem, there are positive generators such that all numbers
are positive and have one colour. This is a full m-p-c set; positivity is part of its definition, not a rule discarding negative expressions. For , put
These coordinates all belong to that monochromatic m-p-c set. Collecting coefficients of gives
Thus the Rado solution inside an m-p-c set proves partition regularity and completes the theorem.
To obtain the Finite sums theorem from Rado's theorem, introduce a positive variable for every nonempty and impose
Partition the columns of this system into . The -column sum is zero: in a row indexed by containing , the contributions of and cancel, and other rows receive neither. For , the -column sum is
where is the column of . Those columns lie in earlier blocks. Hence the columns condition holds. A monochromatic positive solution gives and , proving
For the system has no rows and the conclusion is immediate. The construction is also visible directly in the sufficiency proof: a monochromatic -set contains every nonempty sum of its generators, classified by the smallest chosen index.
For finite sets , the inclusion-exclusion principle is
To prove it, fix an element occurring in exactly of these sets. Its coefficient on the right is , by the binomial theorem applied to . An element occurring in none has coefficient zero. Summing these elementwise coefficients proves the formula.
Write the prime factorization with distinct primes and positive exponents. In let be the multiples of . A number is coprime to exactly when it is outside their union. For a nonempty index set , the intersection has elements, since that product divides . Applying inclusion-exclusion to the complement therefore gives
For , the empty product gives . If positive integers are coprime, their prime factors are disjoint, so the product separates and proves the multiplicativity of the Euler totient function:
For a positive divisor , write the exponent of a prime in as , allowing . Its contribution to is if , and if . Every contribution is an integer; multiplying proves totient divisibility along divisors:
Finally suppose . If the required form is immediate. If were odd, some odd prime would divide it, and the even factor in would make an even number divide an odd number, impossible. Thus write with odd primes and . Counting powers of two in the totient formula gives
where is the -adic P-adic valuation. Every term in the sum is at least one, so there is at most one odd prime and, if present, . Moreover . Since is coprime to , and has no prime factors other than , the integer must be a power of two. Its exponent is one, hence and . This proves
More precisely, the integers whose totient divides them are and with , ; substitution in the product formula proves the converse. A positive power of alone does not satisfy the divisibility condition.
Van der Waerden theorem says that for every pair of positive integers there is such that every finite colouring of using at most colours contains a monochromatic arithmetic progression of length and positive common difference. Consequently every finite colouring of contains arbitrarily long monochromatic arithmetic progressions.
Here is a colour-focusing proof of Van der Waerden theorem. Induct on , simultaneously for all . For , take . Suppose exists for every number of colours , and fix . We will construct finite bounds , , with the following property: every finite colouring of using at most colours contains either a monochromatic length- arithmetic progression, or length- arithmetic progressions of pairwise distinct colours, all focused at the same point . Specifically, their terms are
“Focused” means that adjoining completes the corresponding length- arithmetic progression if has its colour.
For , put . Find a monochromatic length- arithmetic progression in the first points. Its next point is at most and supplies the focus. For , give the selected singleton common difference .
Suppose has been constructed. Set
Divide into consecutive blocks of length . Colour the first block indices by their full colour profiles, that is, the ordered list of their colours. There are at most profiles, so the induction hypothesis on gives equally profiled blocks with indices
When , choose . Otherwise and , since the last selected block is at most and .
Assume the original finite colouring contains no monochromatic length- arithmetic progression. Applying the property of to the common profile gives focused length- arithmetic progressions at a position , with common differences and distinct colours . The colour of position differs from every : otherwise the profile already contains a length- monochromatic arithmetic progression, and so does any selected block.
Put and , a point in the original interval. For , the point
lies in a selected block at profile position , so has colour . Similarly has colour . Thus length- arithmetic progressions of distinct colours focus at . This proves the step in . At , the focus necessarily has the colour of one of the progressions, giving a monochromatic length- arithmetic progression. Hence exists, completing the mathematical induction and the proof of Van der Waerden theorem.
For the partition regularity deduction we first prove a strengthened progression lemma, the Brauer progression theorem: for positive with , there is such that every finite colouring of using at most colours contains a monochromatic set
Induct on . For , take and . Given the result for , put
Van der Waerden theorem supplies a colour- arithmetic progression , , inside . If some , , also has colour , take and use the terms . They are in the progression because .
Otherwise the integers , , use at most colours. Colour by the colour of and apply the induction hypothesis. It supplies a monochromatic set . Multiplying by gives the required configuration with and : its distinguished member is . All of these points are at most , so the finite bound is valid. This proves the Brauer progression theorem using only the just-proved Van der Waerden theorem.
A row is a partition regular matrix over the positive integers if every finite colouring of admits a positive vector whose coordinates have one colour and whose product with the row is zero. Coordinates may repeat. Since the coefficients are rational numbers, multiplying them by a common positive denominator leaves the equation and every zero subset sum unchanged, so write the row as nonzero integer coefficients .
To prove necessity, suppose no nonempty subset of the sums to zero. Choose a prime and use the last nonzero digit coloring
where is the P-adic valuation. If positive all had the same colour and satisfied , let and . After division by and reduction modulo , the equation becomes
As , this says . The latter sum is nonzero and has absolute value at most , a contradiction. This explicitly proves the necessary obstruction without invoking a general partition regularity criterion.
Conversely, suppose and . Select an index , and put
For any finite colouring, the Brauer progression theorem gives one-coloured . The indices and both lie between and . Define positive, same-coloured coordinates by
Then
This also covers equal to the whole index set and . Reversing the clearing of denominators proves the exact criterion:
Here is the matrix form of Rado's theorem. A matrix with entries in the rational numbers and columns is a partition regular matrix if every finite coloring of the positive integers admits a vector whose coordinates are monochromatic and for which . Its columns condition asks for an ordered partition into nonempty blocks , with
Rado's theorem states that these two conditions are equivalent. Coordinates need not be distinct; positivity is required for every coordinate.
First prove necessity using the finite separating-functional proof of the columns condition. Clearing denominators does not change either the kernel or the columns condition, so assume that has integer entries. For each pair of disjoint index sets , with nonempty, for which is outside the rational linear span of the -columns, choose an integer linear functional such that
Such a linear functional exists: extend a basis over the rational numbers of the indicated linear span by , prescribe values zero on the former basis and one on , extend to a basis of the ambient vector space over the rational numbers, and then clear the functional's denominators. There are only finitely many pairs . Choose a prime number larger than the absolute values of all their nonzero evaluations; if there are none, choose any prime number.
Color by its last nonzero digit coloring value, namely
where is the P-adic valuation. By partition regularity, choose a positive solution all of whose coordinates have the same nonzero digit . Group its indices into nonempty blocks according to increasing distinct P-adic valuations .
Suppose that a block sum is outside the rational linear span of the earlier columns, and put , taking for . Apply the selected linear functional to . The earlier terms vanish exactly. Divide the remaining integer equality by and reduce modulo . Later blocks vanish modulo , while each coordinate in contributes its common digit . We obtain
which is impossible by the choice of and because . Thus each block sum lies in the earlier linear span. For the first block, this span is zero, so . This proves the columns condition.
For sufficiency, assume the columns condition and choose rational coefficients , for , such that
Choose a positive integer clearing all these coefficients' denominators and a positive integer with for every coefficient. Use the permitted monochromatic m-p-c set theorem, in the suffix convention for an m-p-c set, to obtain positive generators such that the full set
is positive and monochromatic. The positivity of the full m-p-c set is important: we do not discard expressions that happen to be negative. For , set
All these coordinates belong to , so they are positive and monochromatic. On collecting coefficients of each , their matrix product is
This explicit Rado solution inside an m-p-c set proves sufficiency and completes the proof of Rado's theorem.
To deduce the Finite sums theorem directly from the columns condition, introduce one positive variable for each nonempty and impose
For there are no equations and any positive integer works. For , write for the column belonging to . Partition the columns into blocks in the order . Consider the row indexed by a set with . The sum of the columns in has row value
For this is always zero. For it equals one exactly for those with and . Each such is the negative coordinate vector in row , and it belongs to an earlier block. Therefore
which verifies the columns condition, rather than assuming the desired Finite sums theorem. Apply Rado's theorem to this system. Its monochromatic positive solution satisfies with , and hence
Clear a common denominator first, so that all coefficients are nonzero integers. This changes neither the solutions nor partition regularity. We prove the one-equation criterion directly; no form of Rado's theorem is used as an assumption.
For necessity, choose a prime number . Colour a positive integer by its first nonzero base- digit: writing with , use the colour . Suppose the equation has a monochromatic solution. Let be the smallest P-adic valuation of its entries and put , a nonempty set. Divide the equation by and reduce modulo . All entries indexed by contribute the same nonzero digit , and all other terms vanish. Hence
It follows that divides . The absolute value of this sum is less than , so .
For sufficiency, take a nonempty zero-sum index set and put . If , the full coefficient sum is zero and the constant vector is already a monochromatic solution in every colouring. Otherwise choose , put , and set , for . Then
Add the same sufficiently large nonnegative integer to all the , obtaining . The sum is unchanged because . Let .
Apply the scaled Brauer progression theorem, proved above from the permitted Van der Waerden theorem, to obtain one-colour numbers and . Define
All entries are positive and monochromatic, and
Therefore the row is partition regular exactly when some nonempty coefficient subset sums to zero. Repetition of entries is allowed by the definition of partition regularity.
An additive valuation on a field is a map , where is a totally ordered abelian group, with and whenever . Set . We consider nontrivial valuations; if the trivial valuation is allowed, it must be listed separately from the asserted classification. Two valuations are equivalent when their valuation rings agree, or equivalently their ordered value-group images identify in a way compatible with the maps. Real-valued equivalent nontrivial valuations differ by positive scaling.
For a valuation on , every integer has nonnegative value, because it is a sum of copies of or its negative. If all prime numbers had value zero, unique factorization would make the valuation trivial. Thus some prime has . There cannot be two such primes: for distinct , Bézout's identity gives with integers , and the valuation inequality would give . All other prime values therefore vanish. Factoring the numerator and denominator of a rational number gives
The image is the cyclic ordered group generated by , proving equivalence to the P-adic valuation. This is the classification of nontrivial valuations on the rational numbers; an Archimedean absolute value is not an additive valuation satisfying this ultrametric inequality.
The simple-root form of Hensel's lemma says that for a complete discrete valuation ring with maximal ideal , a polynomial and with and have a unique root in .
For over , all roots are integral: a negative valuation would make the leading term the unique term of lowest valuation. Modulo , the roots are , and is nonzero at each. Hensel's lemma gives three distinct lifts, and a cubic has no further roots. The number is .
For over , a root is again integral and reduces to zero modulo . Write it as with . The equation becomes , impossible modulo . The number is .
For over , a putative root of valuation gives term valuations . The first is uniquely minimal, a contradiction. Thus all roots are integral. Reduction modulo is , whose root zero is simple since the derivative is a unit everywhere. Hensel's lemma gives exactly one lift. The number is .
A rational matrix is partition regular over the positive integers if every finite colouring of admits a vector whose coordinates all have the same colour and satisfy . Equal coordinates are allowed. Rado's theorem says that this holds exactly when the columns can be partitioned into nonempty blocks with
This is the columns condition. Clearing an overall denominator lets us prove necessity for an integer matrix.
Suppose the columns condition fails. There are only finitely many ordered partitions of the finite column index set. For each ordered partition, choose a failing block: its sum is outside the rational span of preceding columns, with that span interpreted as zero for the first block. Finite-dimensional linear algebra gives a rational linear functional vanishing on that span but not on . For completeness, take a basis of the span, append , extend to a basis of the column space, and prescribe values zero on the first basis vectors and one on . Clearing the functional's denominators gives an integer row functional with .
Choose one prime larger than the absolute values of all these finitely many nonzero integers . Colour each positive integer by its first nonzero base- digit:
Assume a monochromatic solution exists, and partition its coordinates into blocks of equal P-adic valuation, ordered by increasing valuations . Their first nonzero digit is a common . For this ordered partition take its chosen failing block and functional . Apply to . All preceding-block terms disappear exactly. Divide the remaining integer equation by and reduce modulo . Later blocks disappear, while the current block gives
This contradicts the prime's choice. Thus the colouring has no monochromatic solution, proving necessity. This is the finite separating-functional proof of the columns condition; it needs neither a limiting argument nor a bound on the valuations themselves.
For sufficiency, suppose the blocks satisfy the columns condition. Choose rational coefficients , for in preceding blocks, such that
Let be a positive integer clearing their denominators, and choose an integer bounding all . Use the allowed monochromatic m-p-c set theorem with generators. We use the triangular convention in which the resulting positive integer set contains every number
in one colour. This is an m-p-c set, with the generator indices reversed if the alternative lower-triangular convention is used. The permitted theorem applies to either convention, since it applies to every finite number of generators. Its set lies in , so all of the displayed combinations are positive.
For , define
Each coordinate belongs to that monochromatic set. Summing the column contributions and collecting coefficients of gives
For the inner sum is empty and . This proves sufficiency by a Rado solution inside an m-p-c set, and completes the theorem.
For the requested application, choose
The matrix, in the coordinate order , has columns
The block has zero sum. The remaining column satisfies , so it is in the span of the first block. By Rado's theorem, positive monochromatic satisfy the system. In particular,
One can see the positivity directly in the same triangular construction: a monochromatic set containing for , together with , gives
All four are positive because they belong to that positive m-p-c set. This is a partition-regular system forcing an ordered Schur relation.