I am working on a problem in number theory and would like to count all possible ways to partition an integer $n$$n\geq 1$ into pairs $(k,m)$ of positive integers such that $n=2k^2+m^2$ and $n=4k^2+m^2$. Let's say $s(n)$ counts all pairs $(k,m)$ such that $n=2k^2+m^2$, while $t(n)$ counts all pairs $(k,m)$ such that $n=4k^2+m^2$. what are the generating functions of $s(n), t(n)$?