Steply

Prove 5^n + 7 is divisible by 4 by induction

Step by step, with the reason for every step · Induction · Discrete Math

Step by step

The question

Question: prove by induction that 5ⁿ + 7 is divisible by 4, for every whole number n.

5n + 7 is divisible by 4

Like dominoes: show it for n = 1, then show that k passes it on to k + 1.

1 Check n = 1

For n = 1: 12, and that is 4 × 3.

Divisible by 4: the first domino falls.

51 + 7 = 12 = 4 × 3

2 Assume it works for k

Suppose it works for k: 5ᵏ + 7 is a multiple of 4.

So it is 4 times some whole number.

Call it m.

5k + 7 = 4m
m is a whole number

Move the rest to the other side: 5ᵏ equals 4m − 7.

We will need this.

5k = 4m − 7

3 What we must show

We must show the same for k + 1: every n becomes k + 1.

= 5k + 1 + 7 is divisible by 4

Careful!

One more power means one more times the number.

It is 5 times as big, not 1 more.

Careful: not 5k + 1 = 5k + 1 ✗

4 Use the assumption

One more power: 5 times the power with k.

5k + 1 + 7 = 5 × 5k + 7
5k + 1 = 5 × 5k

Now swap in 4m − 7 for 5ᵏ.

= 5(4m − 7) + 7

Open the bracket.

= 20m − 35 + 7

Like terms together.

= 20m − 28

5 Take out 4

Every term has a 4 in it.

Take out 4: 4(5m − 7).

= 4(5m − 7)
5m − 7 is a whole number

So it works for k + 1 too.

True for n = 1, and passed on each time: true for every whole number n.

The proof is done.

divisible by 4 for n = 1, and k → k + 1: for every n. ∎

6 Check

Let's check n = 3: it gives 132.

n = 3: 53 + 7 = 132

132 is 4 times 33.

Divisible by 4.

Right!

132 = 4 × 33

Let's look back.

First: check n = 1.

Then: assume it works for k.

Then: what we must show.

Then: use the assumption.

Then: take out 4.

Last: check.

Answer
5m − 7 is a whole number

Your turn

Try this one yourself, then check:

8n − 3n is divisible by 5
Show the answer
5(3k + 8m)

More from Induction

The whole lesson: Induction →