solve x = y(3y-1)/2 for y