I have to find all polynomials $f(X),g(X)\in\mathbb{F}_5[X]$ such that $f(X)\neq g(X)$ and $f(x)=g(x)\neq 0$ for $x\in\mathbb{F}_5$ where $\mathbb{F}_5=\{0,1,2,3,4\}$.
For example: Let $f(X)=X^5$ and $g(X)=X$ where $f(X)\neq g(X)$ in $\mathbb{F}_5[X]$, but if I put $x\in\mathbb{F}_5$ in $f(x), g(x)$ then we get as follows:
- $x=0: f(0)=0^5 = 0 = g(0)$
- $x=1: f(1)=1^5=1 = g(1)$
- $x=2: f(2)= 2^5 = 32\equiv_5 2 = g(2)$
- $x=3: f(3)=3^5 \equiv_5 (-2)^5 = -32 \equiv_5 3 = g(3)$
- $x=4: f(4)=4^5 \equiv_5 (-1)^5 = -1 \equiv_5 4 = g(4)$.
So, for $x\in\mathbb{F}_5$, we get $x^5 =x$. How can I find other polynomials?
Just converting the comment to an answer :
Basically, $f-g$ is a multiple of $\prod_{a \in \mathbb F_5} (x-a)$. Prove that this is sufficient and necessary.