Necessity is the mother of invention, and mathematicians need to dunk.