\[f(a,b)=\sum_{n=-\infty}^{\infty}a^{n(n+1)/2}b^{n(n-1)/2},\]