In this paper by P. Romer https://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.p20151066 I'm wondering the Surplus $S$ was derived.
By using the given condition I found that $$q_0=m^{-\tfrac{1}{a+b}}N^{-\tfrac{b}{a+b}}$$ By Surplus I assume he means total Surplus (Consumer Surplus + Producer Surplus) which can be calculated by the integral $$\displaystyle{S=\int_{0}^{q_0}[D(q)-S(q)]dq=\int_{0}^{q_0}[q^{-a}-N^{b}q^{b}]dq}$$ With a little bit of algebra I find $$S=C(a,b,m)N^{\tfrac{b(a-1)}{a+b}}$$ where $C(a,b,m)=\tfrac{1}{1-a}m^{\tfrac{a-1}{a+b}}-\tfrac{1}{b+1}m^{-\tfrac{b+1}{a+b}}$
So I'm probably wrong, is my idea of $S$ correct? I need to know because if it is then it's likely a mistake in my algebra. I also assumed that $b>0$ and $0\leq a<1$