0

We have the following system of congruences: $$x \equiv 2 \, \text{mod 6}\\ x \equiv 8 \, \text{mod 9}$$ How do we solve this when $6$ and $9$ are not coprime? This excludes the use of CRT, unless we can rewrite the congruences in some clever fashion?

I hope you can help.

1 Answers1

5

You have integers $n,k$ such that $x=6n+2=9k+8$. Then $2(n-1)=3k$ resulting in $n\equiv1\text{ mod }3$. Setting $n=3m+1$ gives you $x=18m+8$, i.e. $x\equiv8\text{ mod }18$.

drhab
  • 151,093