Warm-up · Algebra we will need
Slide 2(a) Expand
(2k+1)2.
Show answerHide answer
Answer
4k2+4k+1=2(2k2+2k)+1.
Why
Expanding and then taking a factor of 2 out of the first two terms shows the result has the form “2 × integer + 1”, which is how an odd number looks.
(b) Factorise fully
n3−n.
Show answerHide answer
Answer
n(n−1)(n+1).
Why
Take out the common factor
n to get
n(n2−1), then use the difference of two squares. The factors are three consecutive integers.
(c) Show that
9k2+12k+6 is a multiple of 3.
Show answerHide answer
Answer
9k2+12k+6=3(3k2+4k+2).
Why
Every term is divisible by 3, so 3 factors out and what remains is an integer when
k is an integer.
(d) Explain in words why
n(n+1) is always even.
Show answerHide answer
Answer
One of two consecutive integers is even, so the product is even.
Why
Consecutive integers alternate between even and odd. A product with an even factor is even.
Writing integers algebraically · Notation
Slide 3Key idea
Useful forms (for some k∈Z)- even: 2k odd: 2k+1
- consecutive: n, n+1, n+2
- multiple of m: mk
- every integer is 3k, 3k+1 or 3k+2
Key idea
Direct proofLet … (define the letters and say they are integers) → manipulate → write in the required form → “Hence …” □
Definition
Divisibility notation- a∣b reads “a divides b”: b=ka for some k∈Z.
- a∤b reads “a does not divide b”.
- For example, 3∣12 is true and 5∤12.
Watch out
a∣b is a statement (true or false), not a number. Do not confuse it with the fraction
a/b.
Definition
CoprimeIntegers are coprime if their highest common factor is 1, for example 4 and 9.
If a∣n and b∣n with a,b coprime, then ab∣n.
Example 1 · Odd and even
Slide 4(a) Prove that the sum of two odd integers is even.
Show answerHide answer
Answer
Let
a=2j+1 and
b=2k+1 with
j,k∈Z. Then
a+b=2j+2k+2=2(j+k+1), which is even since
j+k+1∈Z.
Why
Use two different letters, because the two odd integers need not be equal.
(b) Prove that the product of two odd integers is odd.
Show answerHide answer
Answer
With
a=2j+1 and
b=2k+1:
ab=4jk+2j+2k+1=2(2jk+j+k)+1, which is odd since
2jk+j+k∈Z.
Why
Expand, then group everything except the final 1 as 2 times an integer. Common error: writing
a=2k+1 and
b=2k+1, which only proves the result for equal numbers.
Example 2 · Parity and divisibility
Slide 5(a) Prove that if
n is odd, then
n2+4n+7 is even.
Show answerHide answer
Answer
Let
n=2k+1,
k∈Z. Then
n2+4n+7=4k2+4k+1+8k+4+7=4k2+12k+12=2(2k2+6k+6), which is even.
Why
Substitute the algebraic form of an odd number, expand, and factor out 2.
(b) Let
3∣a and
3∣b. Prove that
3∣(ma+nb) for all integers
m and
n.
Show answerHide answer
Answer
Let
a=3p and
b=3q with
p,q∈Z. Then
ma+nb=3mp+3nq=3(mp+nq), and
mp+nq∈Z, so
3∣(ma+nb).
Why
Translate
3∣a into “
a=3p for some integer
p”, using a new letter for each divisibility statement.
Proof by cases
Slide 6Key idea
Proof by cases (exhaustion over remainders)When an expression behaves differently for different remainders, split into every case: n=2k or 2k+1; n=3k, 3k+1 or 3k+2.
Prove the result in each case, then conclude “in all cases …”. This is proof by exhaustion, with infinitely many integers grouped into finitely many cases.
Example 3
Prove that the square of any integer has the form
3m or
3m+1, but never
3m+2.
Show answerHide answer
Answer
Let
n∈Z.
Case 1,
n=3k:
n2=9k2=3(3k2).
Case 2,
n=3k+1:
n2=9k2+6k+1=3(3k2+2k)+1.
Case 3,
n=3k+2:
n2=9k2+12k+4=3(3k2+4k+1)+1.
So
n2 is never of the form
3m+2.
Why
Every integer leaves remainder 0, 1 or 2 on division by 3, so the three cases are exhaustive. We will use the consequence “if
3∣n2 then
3∣n” in Lesson 4.
Example 4 · Consecutive integers
Slide 7(a) Prove that
n(n+1) is even for every integer
n, by considering
n even and
n odd.
Show answerHide answer
Answer
Case 1,
n=2k:
n(n+1)=2k(2k+1), which is even.
Case 2,
n=2k+1:
n(n+1)=(2k+1)(2k+2)=2(2k+1)(k+1), which is even.
In both cases
n(n+1) is even.
Why
Every integer is even or odd, so the two cases are exhaustive. In each case a factor of 2 appears.
(b) Hence prove that
n3−n is divisible by 6 for every integer
n.
Show answerHide answer
Answer
n3−n=(n−1)n(n+1), a product of three consecutive integers. One of them is a multiple of 3. By part (a),
n(n+1) is even, so the whole product is even. Since 2 and 3 are coprime,
6∣n3−n.
Why
Divisible by 2 and by 3 gives divisible by
2×3=6 because 2 and 3 are coprime. (For the factor of 3, an alternative is cases
n=3k,
3k+1,
3k+2.)
HSC practice · Divisible by 8
Slide 82024 HSC Q14(a)Let
a be an odd integer. By writing
a=4k+1 or
a=4k+3, prove that
a2−1 is divisible by 8. (Wording adapted from the paper.)
Show answerHide answer
Answer
Case 1,
a=4k+1:
a2−1=16k2+8k=8(2k2+k).
Case 2,
a=4k+3:
a2−1=16k2+24k+8=8(2k2+3k+1).
In both cases
8∣a2−1.
Why
Every odd integer leaves remainder 1 or 3 on division by 4, so the cases are exhaustive. Alternative:
a2−1=(a−1)(a+1) is a product of two consecutive even numbers, and one of these is a multiple of 4.
HSC practice · Odd for every integer
Slide 9Adapted from 2024 HSC Q12(d)Prove that
(n+1)41−79n40 is odd for every integer
n.
Show answerHide answer
Answer
Case 1,
n even:
n+1 is odd, so
(n+1)41 is odd;
79n40 is even. Odd minus even is odd.
Case 2,
n odd:
n+1 is even, so
(n+1)41 is even;
79n40 is odd
× odd, which is odd. Even minus odd is odd.
In all cases the expression is odd.
Why
Facts used: odd
× odd is odd (Example 1), any positive power of an odd number is odd, and any positive power of an even number is even. (The original question goes on to deduce that the expression can never equal 2.)
Example 5 · When a claim fails
Slide 10A student claims: “If an integer is divisible by both 4 and 6, then it is divisible by 24.”
(a) Disprove the claim with a counterexample.
Show answerHide answer
Answer
12 is divisible by 4 and by 6, but not by 24.
Why
One counterexample is enough to disprove a “for all” claim.
(b) Explain what went wrong, then state and prove a correct version.
Show answerHide answer
Answer
Correct version: if
4∣n and
6∣n, then
12∣n.
Proof: let
n=4a with
a∈Z. Since
6∣n, we have
3∣4a. As 3 and 4 are coprime,
3∣a, so
a=3b and
n=12b. Hence
12∣n.
Why
4 and 6 are not coprime: they share the factor 2, so multiplying them (
4×6=24) double-counts it. The correct number is the lowest common multiple, 12.
HSC practice · Divisibility
Slide 112020 HSC Q15(a)(i)Let
k be an integer. Prove that if
k+1 is divisible by 3, then
k3+1 is divisible by 3.
Show answerHide answer
Answer
k3+1=(k+1)(k2−k+1) (sum of cubes). If
k+1=3m with
m∈Z, then
k3+1=3m(k2−k+1), which is divisible by 3.
Why
Alternative:
k3+1=(k+1)3−3k2−3k=27m3−3k2−3k=3(9m3−k2−k). The contrapositive and converse of this result are explored in Lesson 4.
Example 6 · A divisibility test for 7
Slide 12Let n=10x+y, where x is a positive integer and y∈{0,1,…,9} is the last digit of n.
(a) Show that
10x+y=10(x−2y)+21y. Hence prove that if
7∣(x−2y), then
7∣n.
Show answerHide answer
Answer
10(x−2y)+21y=10x−20y+21y=10x+y. If
x−2y=7m, then
n=70m+21y=7(10m+3y), so
7∣n.
Why
Expand the right-hand side to verify the identity. Then substitute
x−2y=7m and factor out 7.
(b) Show that
x−2y=21x−2n. Hence prove the converse.
Show answerHide answer
Answer
21x−2(10x+y)=21x−20x−2y=x−2y. If
n=7p, then
x−2y=21x−14p=7(3x−2p), so
7∣(x−2y).
Why
The converse says: if
7∣n, then
7∣(x−2y). Start from
n=7p and use the identity just shown.
(c) Write the result as an iff statement. Is 3871 divisible by 7?
Show answerHide answer
Answer
7∣n⇔7∣(x−2y). For 3871:
387−2=385, then
38−10=28=7×4. So
7∣3871 (indeed
3871=7×553).
Why
Parts (a) and (b) give both directions, so the statement is an equivalence. Apply the test repeatedly until the number is small enough to check by eye.
Example 7 · Proving two numbers are not equal
Slide 13To prove A=B for real numbers, it is enough to prove A<B or A>B.
Prove that
(5+2)n=5n+2n for all integers
n≥2.
Show answerHide answer
Answer
By the binomial theorem,
(5+2)n=5n+(1n)5n−1⋅2+⋯+2n. For
n≥2 there is at least one middle term and all middle terms are positive, so
(5+2)n>5n+2n. Hence
(5+2)n=5n+2n.
Why
Proving a strict inequality is an easy way to prove two quantities differ. Discussion:
n=1 gives equality, so the condition
n≥2 is needed.
Spot the flaw · Two odd integers
Slide 14A student wrote this. Find the flaw, explain why it matters, then write a correct version.
Claim
The product of two odd integers is odd.
- Let the odd integers be 2k+1 and 2k+1, where k is an integer.
- Their product is (2k+1)2=4k2+4k+1=2(2k2+2k)+1.
- This is odd, so the product of two odd integers is odd. □
Task Find the flaw, explain why it matters, and write a correct version.
Show answerHide answer
Answer
Flaw: using the same letter makes the two odd integers equal, so this only proves that the square of an odd integer is odd.
Correct version: let the integers be
2j+1 and
2k+1 with
j,k∈Z. Their product is
4jk+2j+2k+1=2(2jk+j+k)+1, which is odd since
2jk+j+k∈Z.
Why
Every line of algebra is correct; the proof fails on generality. Two different odd integers need two different letters. Compare Example 1.
Exit ticket
Slide 15(a) Prove that the sum of any three consecutive integers is divisible by 3.
Show answerHide answer
Answer
Let the integers be
n,
n+1,
n+2. Their sum is
3n+3=3(n+1), which is divisible by 3 since
n+1∈Z.
Why
Define the letter, add, factor out 3, and write a conclusion.
(b) Disprove: “The sum of any four consecutive integers is divisible by 4.”
Show answerHide answer
Answer
Take
1+2+3+4=10, which is not divisible by 4.
Why
One counterexample suffices. In general the sum is
n+(n+1)+(n+2)+(n+3)=4n+6, which always leaves remainder 2 when divided by 4.