Consider this equation :
$$q(x) = (a_0 + a_1 x + a_2 x^2 + \cdots + a_{r-1} x^{r-1}) \pmod {251} $$
then I'll find the value of
$$ q(1), q(2), q(3), \dots ,q(n) $$
with $r \le n$ and $ 0 <= a < 251 $
The question is:
Is it possible to reconstruct the polynomial given any subset of $q(1), q(2), q(3), \dots ,q(n)$ with amount of subset is greater than or equal to $r$
I have tried it using Lagrange Interpolation method. Without the modulo, the polynomial is constructed perfectly. But using the modulo, sometimes it's giving different polynomial. Although the result is correct answer in terms of following the method correctly, it doesn't give the original polynomial I want.
Anything I missed out, or some misunderstanding regarding the concept of Lagrange Interpolation?
I got this problem from this paper on link below
Edit :
The equation above is at section 3.1 on this paper
Edit again :
Example. suppose the polynomial is $$ 100x^2 + 100 $$
and I will count the value without including the modulo :
$ q(1) = 200 $
$ q(2) = 500 $
$ q(3) = 1000 $
using the Lagrange Interpolation calculator on http://www.wolframalpha.com/input/?i=interpolating+polynomial+calculator
Of course it will return the original polynomial. But when count using the modulo
$ q(1) = 200 % 251 = 200 $
$ q(2) = 500 % 251= 249 $
$ q(3) = 1000 % 251 = 247 $
It will return different equation. I have done the calculation manually and using online solver on link above
The polynomial returned is :
$$ -51x^2/2 +251x/2 + 100 $$