Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
# | User | Rating |
---|---|---|
1 | jiangly | 4039 |
2 | tourist | 3841 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3590 |
5 | ecnerwala | 3542 |
6 | Benq | 3535 |
7 | orzdevinwang | 3526 |
8 | gamegame | 3477 |
9 | heuristica | 3357 |
10 | Radewoosh | 3355 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | atcoder_official | 160 |
3 | Um_nik | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 153 |
8 | luogu_official | 152 |
9 | awoo | 151 |
10 | TheScrasse | 147 |
Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
Name |
---|
Do you know how polynomial interpolation works? If there's a polynomial $$$P$$$ with degree $$$k$$$ and you have value of $$$f(x)$$$ for $$$k + 1$$$ different $$$x$$$, then the polynomial is uniquely determined. If you only need one example of such $$$m$$$, then maybe it's enough to just try different values of $$$m$$$. If you need all such $$$m$$$ it might be trickier, though.
Yes, I do know Polynomial Interpolation and i was trying the same , i made a lot of tries but couldn't get it correct and i thought i wasn't going in the right direction . Thanks for replying , I will try again to figure out tricky part again.
Well what was the problem? Did no value of $$$m$$$ work? Or do you think you had a bug somewhere?
I'd suggest next time you make such a blog, you should say that you already tried polynomial interpolation with different values of $$$m$$$, but it didn't work because [reason]. It makes it so much easier to help you. Besides if you had said that we wouldn't have this conversation.