http://www.codechef.com/problems/COUNTREL this is the question http://discuss.codechef.com/questions/4187/countrel-editorial this is the editorial i am not able to understand how this closed form is coming as explained in the editorial please help
http://www.codechef.com/problems/COUNTREL this is the question http://discuss.codechef.com/questions/4187/countrel-editorial this is the editorial i am not able to understand how this closed form is coming as explained in the editorial please help