A smooth sphere of radius $\mathrm{R}$ is made to translate in a straight line with a constant acceleration a. A particle kept on the top of the sphere is released from there at zero velocity with respect to the sphere. Find the speed of the particle with respect to the sphere as a function of the angle $\theta$ it slides.