Advanced maths

Numerical semigroup Apery set genus and Frobenius calculator

Compute Apéry representatives,all gap counts,genus and conductor for several generators..

Your numbers

Rows on separate lines;comma-separated entries. Exact coefficients may be fractions where stated.

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

Compute Apéry representatives,all gap counts,genus and conductor for several generators.

THE FORMULASeveral generators require more than the two-coin formula; The smallest generator defines residue classes

A worked example

For generators four, seven and nine, the least representatives modulo four are zero, nine, fourteen and seven. The largest is fourteen, so the Frobenius number is ten. The gaps are one, two, three, five, six and ten. Their number agrees with the Apery sum formula and the conductor eleven marks the start of permanent attainability.

Good to know

2–8 positive coprime generators≤500;Dijkstra residue certificate,exact integers.

Several generators require more than the two-coin formula

Enter two through eight positive integral generators, each at most five hundred. Their greatest common divisor must be one so that sufficiently large integers are all representable.

For generators four, seven and nine, the least representatives modulo four are zero, nine, fourteen and seven. The largest is fourteen, so the Frobenius number is ten.

Several generators require more than the two-coin formula01234567891011121314Generators4,7,9;open dots are gapsLargest gap10;all integers≥11are present
Scroll across to see the full diagram.
For generators four, seven and nine, the least representatives modulo four are zero, nine, fourteen and seven. The largest is fourteen, so the Frobenius number is ten. The gaps are one, two, three, five, six and ten. Their number agrees with the Apery sum formula and the conductor eleven marks the start of permanent attainability.

Compare this with the Two-denomination Frobenius number calculator. The two-generator closed-form Frobenius page does not enumerate multi-generator semigroup gaps or Apéry classes.

The smallest generator defines residue classes

The gaps are one, two, three, five, six and ten. Their number agrees with the Apery sum formula and the conductor eleven marks the start of permanent attainability.

A numerical semigroup contains every nonnegative integer combination of its positive generators, including zero. The complement becomes finite exactly when their greatest common divisor is one; otherwise the missing values continue without bound.

Shortest residue paths give the Apery representatives

The least generator m defines the residue classes. For each residue, the Apery set stores the least semigroup element in that class, turning infinitely many representability questions into a finite shortest-path problem.

Adding any generator moves from one residue to another and adds its value as a nonnegative edge cost. Dijkstra-style selection is valid because all generator costs are positive, and coprimality ensures every residue is eventually reached.

Every larger value in the same residue is attainable

The residue-zero representative is zero. Once a representative w is attainable, adding any nonnegative multiple of m remains attainable, so every larger integer with the same residue belongs to the semigroup.

An integer n is a gap exactly when it lies below the Apery representative of its residue. Enumerating that finite test returns the gap list without using a bounded trial search whose horizon might accidentally miss a later gap.

The largest representative determines the conductor

The largest gap is the maximum Apery representative minus m. Adding one gives the conductor, the first integer from which all subsequent integers are attainable; these are related but different quantities in the output.

The genus counts all gaps. Summing the representatives and dividing by m, then subtracting one-half of m minus one, gives the same count and provides an independent arithmetic check on the enumerated complement.

Summing representatives gives the number of gaps

For generators four, seven and nine, the residue representatives are zero, nine, fourteen and seven. Their maximum fourteen gives Frobenius ten, and their sum thirty gives genus six under the Apery formula.

Redundant generators are allowed: adding a generator already representable should not change the resulting semigroup. It may add shortest-path edges, but the minimal representatives and gap invariants remain the same.

Coprimality is required for a finite complement

If one is among the generators, every nonnegative integer is attainable. The gap set is empty, the genus is zero, the conductor is zero and the Frobenius convention is minus one rather than an invented positive largest gap.

The two-generator formula is recovered for coprime a and b, but it does not extend unchanged to three generators. The residue construction handles the several-generator case directly, within the stated generator-size and dimension bounds.

A few questions, answered

What does several generators require more than the two-coin formula mean here?

Enter two through eight positive integral generators, each at most five hundred. Their greatest common divisor must be one so that sufficiently large integers are all representable.

What does shortest residue paths give the apery representatives mean here?

The gaps are one, two, three, five, six and ten. Their number agrees with the Apery sum formula and the conductor eleven marks the start of permanent attainability.

What does the largest representative determines the conductor mean here?

For generators four, seven and nine, the least representatives modulo four are zero, nine, fourteen and seven. The largest is fourteen, so the Frobenius number is ten.

What does coprimality is required for a finite complement mean here?

Enter two through eight positive integral generators, each at most five hundred. Their greatest common divisor must be one so that sufficiently large integers are all representable.

Find your calculator

Start typing to explore the library.