Maths & numbers

P adic Newton polygon calculator with root valuation multiplicities

The p-adic valuation counts how many factors of a prime divide a nonzero integer.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The p-adic valuation counts how many factors of a prime divide a nonzero integer. A Newton polygon organizes those valuations by polynomial exponent. Its lower edges describe the valuations of algebraic roots,which is a different question from calculating decimal root locations or a rational number's p-adic digit expansion.

THE FORMULASegment (i,v_i)→(j,v_j):root valuation=(v_i−v_j)/(j−i),multiplicity=j−i.

A worked example

For ascending coefficients8,4,2,1 and p=2,the lower hull joins(0,3) to(3,0),so three nonzero roots have valuation1.

Good to know

Prime2–97,integer coefficients ascending degree≤40;zero-root multiplicity separate. Valuations concern algebraic roots,not explicit Q_p roots or digits.

Root size can be measured by divisibility

The p-adic valuation counts how many factors of a prime divide a nonzero integer. A Newton polygon organizes those valuations by polynomial exponent. Its lower edges describe the valuations of algebraic roots,which is a different question from calculating decimal root locations or a rational number's p-adic digit expansion.

The normalization here is v_p(p)=1. A root valuation of one means the root has the same p-adic scale as p;it does not mean the root itself equals p. Multiple roots can share the same valuation without being equal or even belonging to the base p-adic field.

Newton polygon and algebraic-root valuations0123Lower slope −1Root valuation 1Multiplicity 3
Scroll across to see the full diagram.
For ascending coefficients8,4,2,1 and p=2,the lower hull joins(0,3) to(3,0),so three nonzero roots have valuation1.

Compare this with the P adic expansion calculator for a rational number. Construct the lower valuation hull and read valuations of algebraic roots from slopes; rational digit expansion is a different output.

Ascending coefficients identify the exponents

Enter the constant coefficient first,followed by the coefficient of x and subsequent powers. The selected p must be prime. Composite bases would not give the discrete valuation required by this polygon theorem,so they are rejected rather than treated as another labeling option.

Zero coefficients are omitted from the plotted finite valuation points. They have infinite valuation,not valuation zero. Trailing zero coefficients are removed to determine the actual degree;leading zero coefficients in ascending order indicate factors of x and therefore roots equal to zero.

The lower convex hull carries the information

For each nonzero coefficient a_i,the algorithm adds the point (i,v_p(a_i)). It constructs the lower convex hull from left to right. A point above a supporting lower edge does not create another slope,while collinear points belong to the same geometric segment.

Using the upper hull would reverse the mathematical question and generally give wrong root valuations. The output includes both the coefficient points and the hull vertices so the supporting-edge choice can be inspected rather than inferred from an unexplained final list of fractions.

Slopes become valuations with a minus sign

An edge from exponent i to exponent j has horizontal length j−i. Its negative slope is the valuation shared by that many nonzero roots,counting algebraic multiplicity. The calculation stores that valuation as an exact rational number,so fractional values are not rounded into integers.

These statements concern roots over an algebraic closure of the p-adic field. A fractional valuation may signal ramification,while an integer valuation does not establish that a corresponding root is already in Q_p. Root existence in a particular extension needs additional residual-polynomial or lifting analysis.

The example has three roots of valuation one

For coefficients8,4,2,1 at p=2,the points are (0,3),(1,2),(2,1),(3,0). They lie on one lower segment with slope−1 and horizontal length three. Consequently all three algebraic roots have valuation one,counting multiplicity.

The polygon alone does not separate those three roots. It also does not state that two is an actual root:substituting x=2 gives32 rather than zero. This illustrates the difference between a valuation prediction and a polynomial root certificate,a distinction worth checking before applying Hensel lifting.

Zero roots are reported outside the finite slopes

A polynomial starting with several zero coefficients contains a corresponding power of x. The page reports that zero-root multiplicity separately,then constructs finite segments from the remaining nonzero coefficients. Zero roots have infinite valuation and cannot be placed on an ordinary finite slope list.

The sum of finite segment lengths equals the degree after removing the zero-root factor. A nonzero constant polynomial therefore has no roots and no segments. The zero polynomial is rejected because neither a finite root count nor an ordinary Newton polygon root interpretation applies to it.

What to do after reading the polygon

Use a segment to choose an appropriate valuation scale for a subsequent lifting or extension-field calculation. Multiplicity is attached to a valuation group,not to an explicitly identified root. Saving the original coefficient order and prime prevents ambiguities when comparing with another program's convention.

This page provides exact coefficient valuations and exact hull slopes for bounded integer polynomials. It does not compute splitting fields,residual polynomials,root digits or p-adic accuracy bounds. Those are separate operations,and the source link describes the underlying Newton-polygon objects rather than promising those additional outputs.

A few questions, answered

What do zero coefficients contribute?

They have infinite valuation and are omitted from finite coefficient points.

Does a valuation identify a root?

No. It identifies a p-adic size shared by a group of algebraic roots,not their values or field of definition.

Why is the slope negated?

The Newton-polygon theorem assigns root valuations equal to negative lower-edge slopes.

What about a factor of x?

Its zero roots are reported separately because their valuation is infinite.

Find your calculator

Start typing to explore the library.