Original question: Prove that if 3 is a divisor of two numbers, it is a divisor of their sum and their difference. Generalize this and prove that if d is a divisor of two numbers b1 and b2, then d is a divisor of b1 + b2 and of b1 -b2. [Question from Rational and Irrational numbers by Ivan Niven]
I am new to proofs and I have limited methods to approach the problem.
Consider that if num1 and num2 which are exactly divisible by 3, then
num1 = 3 q1 [q1 is a quotient] and
num2 = 3 q2
Consider, if 3 divides exactly num1 + num2
Then, (num1 + num2)$\div$3
= (3 q1 + 3 q2)$\div$3
= 3 (q1 + q2)$\div$3
= q1 + q2
= Q (Where Q = q1 + q2 which in fact is integer)
So, can we address the first half of the question with this proof?
I would change a few things in the second half of the proof. There are two things to take into account:
Let $\operatorname{num}_1$ and $\operatorname{num}_2$ be two integers divisible by $3$. We want to prove that their sum $\operatorname{num}_1 + \operatorname{num}_2$ is also divisible by $3$; i.e., we want to prove that there exists an integer $Q$ such that $\operatorname{num}_1 + \operatorname{num}_2 = 3Q$.
By assumption, $\operatorname{num}_1$ and $\operatorname{num}_2$ are divisible by $3$, so there exists two integers $q_1$ and $q_2$ such that:
\begin{align} \operatorname{num}_1 &= 3 q_1; \\ \operatorname{num}_2 &= 3 q_2. \end{align}
Consider now the sum $\operatorname{num}_1 + \operatorname{num}_2$:
\begin{align} \operatorname{num}_1 + \operatorname{num}_2 &= 3 q_1 + 3 q_2 \\ \operatorname{num}_1 + \operatorname{num}_2 & = 3(q_1 + q_2) \end{align}
Let $Q = q_1 + q_2$. We have proven that $\operatorname{num}_1 + \operatorname{num}_2 = 3 Q$. Hence, $\operatorname{num}_1 + \operatorname{num}_2$ satisfies the definition of divisibility by $3$.