Contest Problem: here Practice Problem: here Also the link for the Editorail doesn't works (https://discuss.codechef.com/problems/BASE) asked 21 Feb '17, 17:47

First of all, for N=1 answer is INFINITY and for N=0 answer is 0. answered 21 Feb '17, 18:18

I saw a solution and the following code was written what does that means m=pow(n,(1/(double)j)+1e15); k=pow(n/2,(1/(double)j)+1e15); answered 15 Mar '17, 14:38

@manas321 this statement m and k gives the range...and when u go deeply in this question,u will derive an formula that u have to find the range between m and k.Here m is equal to the power of n^(1/j) nd k denotes power of (n/2)^(1/j)..nd abve statement of finding the power finds an accurate value as m=pow(n,(1/(double)j)+1e15)..otherwise there seems to be an error in finding ranges..u can see my solution https://www.codechef.com/viewsolution/12391435 to understand clearly. answered 15 Mar '17, 15:25
