From: leox on
How to simplify to a rational function the following sum

\sum x^i y^j z^{a*i+b*j-2k}

where a,b integers >0 and i,j,k>=0 run over the set a*i+b*j-2*k>=0?