Using a proper generating function I need to evaluate the number of integer solutions to this equation : $\sum_{k=1}^r |x_k| =n$
Can I assume that
$\sum_{k=1}^r x_k =n$
and
$\sum_{k=1}^r -x_k =n$
has the same amount of integer solutions and that the answer is actually $2*p$
for p equals the number of integer solutions to the following equation $\sum_{k=1}^r x_k =n$ ?
If $r=2$, then $(0,n)$ for natural numbers becomes two solutions $(0,\pm n)$, but $(m,n-m)$ becomes four solutions $(\pm m,\pm(n-m))$