I was trying to solve this problem. Whilst solving this question, I figured out a very interesting formula, which is as shown above.
I don't know whether this formula has already been discovered or not, but, anyways here is the proof.
By , we know that : , where .
Say . So,
This on simplification yields :-
Check this formula for this question.