AlternatingFactorial
AlternatingFactorial[n] gives the alternating factorial af(n).
Examples
Compute the alternating factorial:
AlternatingFactorial[5]
(* 101 *)The alternating factorial is defined as the sum of alternating factorials:
Table[AlternatingFactorial[n], {n, 1, 6}]
(* {1, 1, 5, 19, 101, 619} *)Please visit the official Wolfram Language Reference for more details.