|
0
Yes, thank you very much. |
|
0
First of all, thank you for replying. Solution looks fine to me, just wanted to confirm, is c1[i] = (2*i -K -1)? Although there is one interesting thing in the editorial that how parameter Anyways thanks again. |
|
0
Its correct in the article. Since f(p^k) = k and also f(i/p^k) = f(i) / f(p^k). (this can be proved as; f(i) = f(p^k * i/p^k) => f(i) = f(p^k) * f(i/p^k) => f(i/p^k) = f(i)/f(p^k)) Note: gcd(p^k, i/p^k) = 1 |
|
0
Hi, Have you understood this solution? |