Harry Potter–inspired mathematics