I was told by my tutor to interpret the notation $$ f(x) \equiv g(x) \hspace{2mm} (\text{mod} \hspace{2mm} h(x), \hspace{1mm} n) $$ as meaning that "$f(x)$ is equivalent to $g(x)$ in the polynomial quotient ring $\mathbb{Z}_n [x] / h(x)$".
Assuming that this is a correct definition of this notation, I am wondering how exactly to interpret this. Am I correct in thinking that this means that $$ f(x) \in \left\{ \hspace{1mm} g(x) \cdot h(x)^k \hspace{2mm} | \hspace{2mm} k \in \mathbb{N} \hspace{1mm} \right\} $$
For example, would $$ f(x) \equiv (x^2 + 1) \hspace{2mm} (\text{mod} \hspace{2mm} (x^4 + 1), \hspace{1mm} 2) $$ mean that $$ f(x) \in \left\{ (x^2 + 1), \hspace{1mm} (x^2 + 1)(x^4 + 1), \hspace{1mm} (x^2 + 1)(x^4 + 1)^2, \hspace{1mm} (x^2 + 1)(x^4 + 1)^3, \dots \hspace{1mm} \right\} $$