You have a lot of bags, and you want to store them by stuffing all of them into one of the bags. For *n* bags, how many ways are there to do this?

I’ve spent a good amount of time thinking about that question (originally posed by math teacher ) recently, and I figured I’d inflict it on you as well. It’s not my fault, though. Sam Shah, a high school math teacher, wrote about the question on his blog, Continuous everywhere but differentiable nowhere, after Matt Enlow shared it. I’ve been reading Shah’s blog since 2012, when he posted a really interesting calculus class project investigating the Gini index, a measure of wealth inequality.

The stuffing sacks problem appears in the good math problems tag on his blog, which certainly lives up to its name. Plenty of nerdsniping there. Some of the problems are fun brain teasers like stuffing sacks, but some of them are more geared towards making sure his math class is about thinking instead of formulas. For example, what’s the derivative of log(log(sin(x)))? It’s easy to use the chain rule to come up with an answer without stopping to consider the small detail that log(log(sin(x))) doesn’t make sense for any real numbers. Oops.

In addition to puzzles that will help you pass the time waiting for the bus, Shah often writes about how he cultivates deep understanding in the classroom. He recently wrote about the way he has students make conjectures at the beginning of the semester and then the eventual payoff when they finally have the tools to prove the conjectures. Outside of the classroom, he helped launch a student math and science journal at his school. Even if you don’t teach high school, a trip to his blog will probably give you some ideas for your classroom or just for talking about math with people.

So how many ways are there to stuff sacks? It’s not hard to figure out the values for the first few numbers *n*. But holy overcounting, Batman, things get complicated as *n* increases! There’s an OEIS sequence that will get you the answer, but that would take all the fun away.