An equilateral triangle frame PQR of mass M and side a is kept under the influence of magnetic force due to inward perpendicular magnetic field B and gravitational field as shown in the figure.The magnitude and direction of current in the frame so that the frame remains at rest is