Maths & numbers

Two-denomination Frobenius number calculator

Find the largest amount that cannot be made with unlimited supplies of two coprime denominations.

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

Find the largest amount that cannot be made with unlimited supplies of two coprime denominations.

THE FORMULAF=ab−a−b for coprime positive denominations

A worked example

With denominations 4 and 7, the largest unattainable total is 17.

Good to know

If the denominations share a factor above one, unattainable totals are unbounded.

Read the result

Find the largest amount that cannot be made with unlimited supplies of two coprime denominations.

The primary result is labeled “Largest unattainable total”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

If the denominations share a factor above one, unattainable totals are unbounded.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

With denominations 4 and 7, the largest unattainable total is 17.

Which rule does this calculator apply?

F=ab−a−b for coprime positive denominations

Find your calculator

Start typing to explore the library.