A block of mass m is released from rest at point A. The compression in spring (force constant k) when the speed of block is maximum is found to be nmg cos theta / 4 k. What should be the value of n?