Solve for d Hd+4Md=g^3