0

Is there a possible way to solve an equation like this? it has only 1 variable, but it is in both sides. Constraint: n must be an integer

20-3n = 0 mod (10n+7)

one solution would be n=1, Can there be multiple solutions other than that?

Omar
  • 141

3 Answers3

1

Let $m = 10 n + 7$. Note that $m$ and $10$ are coprime, so $10$ is invertible mod $m$, and $n \equiv - 7 \cdot 10^{-1} \bmod m$. Then your equation says

$$ 20 + 3 \cdot 7 \cdot 10^{-1} \equiv 0 \bmod m$$

and multiplying by $10$,

$$ 200 + 3 \cdot 7 = 221 \equiv 0 \bmod m$$

so $m$ must be a divisor of $221$. There are four positive possibilities: $m = 1, 13, 17$, or $221$, of which only $17$ is of the form $10n+7$ (corresponding to $n=1$), and four negative possibilities: $m=-1, -13, -17, -221$, of which only $-13$ is of the form $10n+7$ (corresponding to $n=-2$).

Robert Israel
  • 448,999
1

Hint $ $ by here $\,10n\!+\!7 = \gcd(\color{#c00}{10}n\!+\!\color{#0a0}{7,-3}n\!+\!\color{#c00}{20})\,\mid\, \color{#c00}{10(20)}\!-\!\color{#0a0}{7(-3)}\, =\, 13(17)$

Bill Dubuque
  • 272,048
0

In order for $20-3n \equiv 0 \mod (10n+7)$ we must have that $10n+7$ divides $20-3n$. So $|10n+7| \leq |20-3n|$.

But clearly for $n$ large enough, (or negative enough) we have that $|10n+7| > |20-3n|$. Thus we can reduce this to a finite check, and see that the only solutions are $n=1$ or $n=-2$.

user413766
  • 1,156
  • 7
  • 14