I factored $3n^2+7n+4$ to $(3n+4)(n+1)$ and because there isn't a common factor of those and $n+2$ I said that the gcd is $1$, but is there any othere way to go about it that would come up with a gcd that isn't $1$?
2026-04-02 19:42:44.1775158964
On
On
Given $n \in \Bbb Z$, determine $\gcd(3n^2 + 7n + 4, n + 2)$.
75 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
0
On
Apply Euclid's algorithm: $$3n^2 + 7n + 4 = (3n+1)(n+2) + 2$$ $$ \text{gcd }(3n^2 + 7n + 4) = \text{ gcd }(n+2,2) $$ So the answer is $1$ if $n$ is odd, but $2$ if $n$ is even.
0
On
Note that $\,\underbrace{\gcd(f(n),n\!+\!2) = \gcd(f(-2),n\!+\!2)}\ $ by the Euclidean algorithm, since
$\ {\rm mod}\ n\!+\!2\!:\,\ f(\color{#c00}n)\equiv f(\color{#c00}{-2})\ $ by $\ \color{#c00}{n\equiv -2},\ $ by the $ $ Polynomial Congruence Rule,
where above $\ f(x)\ $ is any polynomial with integer coefficients. $ $
In the OP: $\, f(-2) = 2,\,$ so $\,\gcd(f(n),n\!+\!2)=\gcd(2,n\!+\!2)=\gcd(2,n)$
We have $$3n^2+7n+4 = (n+2)(3n+1) + 2$$ Hence, if $d$ is a common divisor of $3n^2+7n+4$ and $n+2$, then $d$ must divide $2$. Hence, $\gcd(3n^2+7n+4,n+2) = 1 \text{ or }2$. $3n^2+7n+4$ is always even. Further, $n+2$ has the same parity as $n$.
Hence, if $n$ is odd, $$\gcd(3n^2+7n+4,n+2) = 1$$ while if $n$ is even $$\gcd(3n^2+7n+4,n+2) = 2$$