题目
Problem
(i) Prove by counter example that the statement
“If n is a prime number then 3n+2 is also a prime number.”
is false.
(2)
(ii) Use proof by exhaustion to prove that if m is an integer that is not divisible by 3, then
m2−1
is divisible by 3
(4)
解答
(i)
解法一
思路
展开
反例只需要找一个 prime n,使 3n+2 不是 prime。选 n=5 很方便。
答题过程
展开
Take
n=5.
This is prime. But
35+2===243+22455×49.
So 35+2 is not prime. Therefore, the statement is false.
(ii)
解法一
思路
展开
一个整数不被 3 整除,只可能形如 3k+1 或 3k+2。proof by exhaustion 就是把这两种情况都检查完。
答题过程
展开
If m is not divisible by 3, then either
m=3k+1
or
m=3k+2,
where k is an integer.
Case 1:
m=m2−1====3k+1(3k+1)2−19k2+6k+1−19k2+6k3(3k2+2k).
So m2−1 is divisible by 3.
Case 2:
m=m2−1====3k+2(3k+2)2−19k2+12k+4−19k2+12k+33(3k2+4k+1).
So m2−1 is divisible by 3.
In all possible cases where m is not divisible by 3, m2−1 is divisible by 3.