A Complicated Math Problem