Let $R$ be Noetherian ring, $S=R[X_1,\dots,X_n]$ a polynomial ring over $R$, and $f\in S$ a non-zero divisor. How to show that $S/(f)$ is flat over $R$ iff the coefficients of $f$ generate the unit ideal of $R$?
My attempt: Let $I$ be the ideal generated by coefficients of $f$, then $\mathrm{Tor}^R_1(R/I,S/(f))$ is non-zero. How do I continue?