I am trying to prove a different equation and am able to if the following is true, but I am not exactly sure if it is true.
If $a\equiv b \pmod{9}$ and $c+d = 9$, is $ca+bd \equiv 0 \pmod{9}$ a true statement?
I have tried various examples, like
$a = 29$, $b = 2$, $c = 2$, and $d = 7$
$a = 13$, $b = 4$, $c = 4$, and $d = 5$
and more.
If anyone has a counterexample, please let me know! Otherwise, if this is true, then can someone please explain why? Thanks!
$a\equiv b\pmod{9}$ and $c+d=9$ implies $a-b\equiv 0\pmod{9}$ and $d\equiv -c \pmod{9}$ ,respectively. So
$$ca+bd\equiv ca-cb\equiv c(a-b)\equiv c\cdot 0\equiv 0 \pmod{9}.$$