In the 1987 movie “Rain Man,” a waitress in a diner brings a box of toothpicks to the table and accidentally spills them on the floor. Raymond Babbit, a savant played by Dustin Hoffman, studies them on the floor and instantly calculates the number: “246 toothpicks.”

### The Math Problems in Good Will Hunting

The movie “Good Will Hunting” features math problems related to graph theory and linear algebra. Matt Damon portrays the main character, Will Hunting, who is able to solve problems on…