Problem: Is there a polynomial $p(x)$ with integer coefficients such that $p(2013)=1789$ and $p(1515)=1830$?
My attempt:
After ruling out polynomials of degree 1, 2 and 3, and with further inspection, it appeared to me that such a polynomial doesn't exist.
Is my below proof accurate?
Suppose that $p$ exists, and let
$q(x)=p(x)-1789$ and $s(x)=p(x)-1830$
then, $q(2013)=0$ and $s(1515)=0$, so clearly,
$q(x)=(x-2013)f(x)$ and $s(x)=(x-1515)g(x)$,
for some polynomials $f$ and $g$ with integer coefficients.
Let $a$, $c$ and $d$ be the constant terms of $p$, $g$ and $f$, respectively, and observe that the constant terms of $s$ and $q$ are
$-1515c=a-1830 \ $ and $-2013d=a-1789$, $ \ $ respectively. $ \ \ \ \ \ \ (*)$
Thus,
$a \equiv 1830 \equiv 315 \pmod{1515}$ and $a \equiv 1789 \pmod{2013}$.
But this system of congruence doesn't have a simultaneous solution (since $ \gcd(1515, 2013)\not\mid 1789-315$).
Hence, there's no integer value of $a$ that satisfies $(*)$, which is a contradiction.
Therefore, $p$ doesn't exist.
If the above is correct, is there perhaps a more direct way of proving this?