sympy/sympy — pull request #1004 by smit-mehta (2012-01-20 15:12:40+00:00)
Title: Solved defect id = 1740.

The input n cant be anything except a natural number. So instead of assert statement, two if conditions are added.