Thus if the imaginary quadratic extension mathbf{Q}( au) has class number 1 (so d is a Heegner number), the j-invariant is an integer.
The q-expansion of j, with its Fourier series expansion written as a Laurent series in terms of q=exp(2 pi i au), begins as