m^n-m*(m-1)^(n-1) sum{1->n} (k^i)/(a_i) s=mul{a_i} frac_i={k^i*(s/a_i)}/s [p 1] [a1 , a 2] [q 0]* premake [1,sqrt(R)] CF906 Power DFS exeuler