Chicken McNugget Theorem

Rarely Tested

For any two relatively prime positive integers a & b,
the greatest integer that cannot be written in the form $$ax+by$$ for non-negative integers $$x$$ and  $$y$$
is given by $$ab-a-b$$.

And the exact number of positive integers that cannot be written in the form $$ax+by$$ is given by $$\frac{\left(a-1\right)\left(b-1\right)}{2}$$.

Question 1

What is the maximum number which cannot be expressed as 3X + 11Y for any two whole numbers X and Y?

Question 2

In olden days, there were only 4 paisa, 7 paisa and 11 paisa coins. What is the maximum amount you can't exactly pay using just the three sets of coins?

Question 3

Ravi has coins of denominations Rs 5 and Rs 16 only. Find the sum of digits of the maximum whole number amount that he cannot pay using these denominations and also the number of such amounts that he cannot pay using the coins he has.

Log in to view all questions

Go back to topics

Join CAT 2026 course by 5-Time CAT 100%iler

Crack CAT 2026 & Other Exams with Cracku!