I’m spending Christmas with my girlfriend’s family this year, and her mom reaches into a Costco-sized bag of M&Ms and pulls out 9 M&Ms: 3 browns, 3 yellows and 3 greens. “What are the odds of that?” she asked. Secretly, I thought: ONE. It happened, after all.

m&ms

But the question sparked quite a debate: how often does it happen that you could get exactly three browns, yellows and greens when selecting nine? What a terrific moment to have a high school math teacher around, everyone thought.

Yet the question, which seemed like a standard combinatorics problem straight out of a high school textbook, puzzled me. It puzzled the whole family, including folks with degrees in STEM fields. Folks took multiple approaches and tried different sets of constraints. Chicken scratch started appearing on the backs of envelopes, then on corners of wrapping paper, then on full sheets of paper. I resisted transitioning to a spreadsheet as long as I could, which wasn’t very long.

IMG_0281

After many instances of blurting out “I’ve got it!” only to find out that I didn’t, in fact, get it, the solution came to me as I was laying in bed at night. My girlfriend was not nearly as excited as I was when I woke her up to tell her I solved it.

In truth, it was the most fun I’d had working on a math problem in a while. I hope you’ll give it a try, and tell me how you did it!