This problem is the result of many hours of cleaning baby bottles for two daughters. Suppose your baby uses a certain type of bottle that is composed of three pieces (say, top, middle and bottom). The bottles come in two colors (say, blue and green). You have three blue bottles and two green bottles, for a total of five bottles. Your baby uses all five bottles in a single day. Because you’re perpetually tired, you do not disassemble and wash the bottles until the end of the day. After the bottles have dried overnight, you reassemble them and begin your next day. Such is the life of a new parent.

Amanda Montañez
When you go to reassemble the bottles, you notice that you can exchange parts among them so that some are “mixed up.” For example, you can put a green top on a blue middle and blue bottom. Naturally, you try your hand at swapping parts so there is no complete bottle of a single color—in other words, you find a “derangement” of the bottles.
On supporting science journalism
If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.
Here is one such derangement:

Amanda Montañez
Suppose you then buy some new bottles in a third color (say, pink). What is the minimum number of pink bottles required to ensure that no derangement can occur?
Subscribe to Support Independent Journalism
Great science journalism requires human expertise, time, effort and creativity. And it costs money. That’s why I and the journalists here at Scientific American hope you’ll join our community.
When you subscribe, you are supporting staff and freelance journalists who are passionate about telling science stories that are true, important and compelling. Our editors and reporters are often experts in their fields, which means they understand the nuances of big discoveries and can untangle the breakthroughs from the hype. With a subscription, you are also supporting rigorous fact-checking to ensure the words we publish are precise and accurate. And you’re supporting original illustrations, graphics and photos that bring you closer to an advanced laboratory, an ice sheet in Antarctica or a space mission in orbit. You’re helping us craft other types of high-quality journalism as well: Our newsletters are carefully written, edited and curated by staffers you have or will come to know and love. Our Science Quickly podcast is based on original reporting, collaboration with editors and scientists and exacting production.
Subscriptions keep this engine running so we can continue to deliver thoughtful, rigorous and independent science journalism to you. In an era of viral misinformation, this work is crucial. If you value what we do, I hope you’ll consider joining us as a subscriber
