Let n∈N, and let a,b∈Z. Suppose that a≡b (mod n). Prove that n|a if and only if n|b.
As can be proceed?
Let n∈N, and let a,b∈Z. Suppose that a≡b (mod n). Prove that n|a if and only if n|b.
As can be proceed?
Since it's a biconditional statement, you must prove the statement in both directions.
$a - b = nk$ for some integer k (by hypothesis)
$a = qn$ for some integer q (by definition of divisibility)
$b = a - kn = nq - nk = n(q-k)$
Thus n divides b.
$a - b = nk$ for some integer k (by hypothesis)
$b = np$ for some integer p (by definition of divisibility)
$a = nk + b = nk + np = n(k+p)$
Thus n divides a.
This ends the proof.