Using a factorial in Grapher results in an incorrect function output, it seems Grapher does the Gamma function rather than the standard step function for factorial. Take a look:
Which gamma is actually defined as:
rather than the true factorial:
Which gamma is actually defined as:
rather than the true factorial: