I have $n+1$ data points $(x,y)$, and I want to create an interpolating polynomial as described here https://en.wikipedia.org/wiki/Polynomial_interpolation.
However there is a twist, I want to ensure $a_0$ is some real rational number. Basically what I am looking for is a way to interpolate and solve for $a_n, a_{n-1}, ..., a_1$ given that $a_0=k$ for some known value of k. For example k can be 0 or 1. For my purpose, the error or complexity does not matter.
Does anyone know if this is possible to do?
Thanks.

Essentially, when you build an interpolation polynomial of degree $n$ using $n+1$ points $(x_i,y_i)$ with $x_i\ne x_j$ whenever $i\ne j$, you obtain a well-defined system of $n+1$ linear equations on $n+1$ unknowns (the coefficients of your interpolation polynomial).
When you impose an additional constraint $a_0=k$ (this will be your $n+2$nd equation), your system becomes overdetermined.
If this value $a_0=k$ agrees with the $n+1$ previous equations, everything is ok. If it does not, then the system does not have any solutions.
A viable approach would be to increase the degree of the polynomial. If $\forall i\, x_i\ne 0$, then you just add another interpolation point $(0,k)$ and now on $n+2$ points you can build an interpolation polynomial of degree $n+1$; as a consequence, for such a polynomial $a_0=k$.
However, if one of interpolation points is already of the form $(0,s)$, then in the case $s=k$, you can build your polynomial of degree $n$. In the case $s\ne k$, you can not build such a polynomial, whatever you do. You will need to resort to approximations, least square problem, etc.