Wow, was just testing around and it appears the exact same recursive formula satisfies the second part of the equation as well (the 'conjugate' square, I guess you could call it?). You just need to use the different set of initial values: n_i = 1, 5, 65, 901, 12545...
m_i = 0, 8, 112...