Prove, for any non-zero polynomial \(p\), that congruence modulo \(p\) is an equivalence relation.
It is reflexive: \(f \equiv f \bmod p\).
It is symmetric: if \(f \equiv g \bmod p\), then \(g \equiv f \bmod p\).
It is transitive: if \(f \equiv g \bmod p\) and \(g \equiv h \bmod p\), then \(f \equiv h \bmod p\).
Solution
By definition, \[ f\equiv g\pmod p \] means that \(p\) divides \(f-g\).
Since \(f-f=0\) and \(p\mid0\), we have \(f\equiv f\pmod p\).
If \(p\mid(f-g)\), then \[ g-f=-(f-g), \] so \(p\mid(g-f)\) and hence \(g\equiv f\pmod p\).
If \(p\mid(f-g)\) and \(p\mid(g-h)\), then \[ f-h=(f-g)+(g-h), \] so \(p\mid(f-h)\). Hence \(f\equiv h\pmod p\).
Thus congruence modulo \(p\) is an equivalence relation.