problem 53, added factorial to equations