Animation Nodes - calculate factorial of frame numbers
I think you'd just be better off with an Expression node (Shift + A > Subprograms > Expression) with a Float input and the code factorial(x). It looks like this: