Let $S$ be the set of polynomials $f(x)$ with integer coefficients satisfying
$f(x) \equiv 1$ mod $(x-1)$
$f(x) \equiv 0$ mod $(x-3)$
Which of the following statements are true?
a) $S$ is empty .
b) $S$ is a singleton.
c)$S$ is a finite non-empty set.
d) $S$ is countably infinite.
My Try: I took $x =5$ then $f(5) \equiv 1$ mod $4$ and $f(5) \equiv 0$ mod $2$ . Which is impossible so $S$ is empty.
Am I correct? Is there any formal way to solve this?
Let we have a general polynomial form as following$$f(x)=a_0+a_1x+\cdots +a_dx^d$$We know that for some polynomials $a(x)$ and $b(x)$ $$f(x)=1+(x-1)a(x)=b(x)(x-3)$$therefore $$f(1)=1\\f(3)=0$$ which leads to $$(1)\quad a_0+a_1+\cdots +a_d=1\\(2)\quad a_0+3a_1+\cdots +3^da_d=0$$by subtracting $(1)$ from $(2)$ we obtain $$2a_1+8a_2+\cdots +(3^d-1)a_d=-1$$which is impossible since the LHS is even and the RHS is odd, so such a polynomial doesn't exist