In the context of "polynomial division", if you are dividing the polynomial $p(x) = 2$ by $q(x) = 3$, you continue the division process until the degree of the remaining polynomial (the dividend) is lower than the degree of the divisor. In other words, you divide until you can no longer get a term with a degree equal to or higher than the divisor's degree.
In your example, if you are dividing $p(x) = 2$ by $q(x) = 3$, you can indeed perform the division, but the result is not $f(x) = 1$. Instead, it's $f(x) = \frac{2}{3}$. In this case, $f(x)$ is a constant polynomial because $q(x)$ is a higher-degree polynomial.
In modular arithmetic with integer coefficients, the division would work similarly. If you are working in a modulus, such as modulo 5 (denoted as $\text{mod } 5$), and you want to perform the division of $p(x)$ by $q(x)$, you would still follow the same rule. However, you'll perform the division with integers, considering the modulus.
For example, if you are in modulo 5 and want to divide $p(x) = 2$ by $q(x) = 3$, you can perform the division:
$
\begin{align*}
2 &\equiv 2 \pmod{5} \quad \text{(because $2 \text{ mod } 5 = 2$)} \\
\end{align*}
$
So, in modular arithmetic, $f(x)$ would be $2 \pmod{5}$, which is still $2$, not $1$.