I would like to know if you could suggest a compact notation for the following sequence of functions (explanation below).
$ f(a_1) = g(a_1) - g(-a_1) $
$ f(a_1,a_2) = g(a_1,a_2) - g(-a_1,a_2) -g(a_1,-a_2) + g(-a_1,-a_2) $
$ f(a_1,a_2,a_3) = g(a_1,a_2,a_3) - g(-a_1,a_2,a_3) - g(a_1,-a_2,a_3) - g(a_1,a_2,-a_3) + g(-a_1,-a_2,a_3) + g(-a_1,a_2,-a_3) + g(a_1,-a_2,-a_3) - g(-a_1,-a_2,-a_3) $
$ f(a_1,...,a_n) = \sum ... ?$
Note that the function $f$ takes $n$ arguments, and is written as $2^n$ functions $g$. Furthermore, the arguments inside the functions $g$ have all possible tuples of signs $\pm$, and the sign in front of the $g$ depends itself on the parity of the signs of the arguments.