You are using the new UI (Beta).Return to the original UI

This page has been automatically translated by machine translation. Please note that translations may not be entirely accurate.

keisanHigh-precision calculations for everyday life and work

Chicken McNuggets Number (Frobenius’s Coin-Exchange Problem)

Author: tonagaiExecutions: 5292

※ This library was created by a member. This site is not responsible for its content.

Manage Bookmarks
In the past, McDonald’s in the UK offered Chicken McNugget sets containing 6, 9, or 20 pieces.When buying multiple sets, the maximum number of Chicken McNuggets that cannot be obtained as the total count is the “non-Chicken McNugget number.” Replacing this with coins of various denominations yields the Frobenius coin exchange problem. We will perform the calculation using three coins.
Enter the number of nuggets in a set (or the value of a single coin) three times,
(The three numbers must be relatively prime to each other.)
Then enter the maximum value you wish to check.
If there are two sets (two types of coins), set Set 3 to 0.
Number of nuggets in Set 1
Or the value of Coin 1
Number of nuggets in Set 2
Or the value of Coin 2
Number of nuggets in Set 3
Or the value of Coin 3
Find the maximum total number of nuggets
Or the maximum total amount that can be paid

No customer feedback for this calculation yet.