Steply

Last digit of 7^100

Step by step, with the reason for every step · Powers mod n, last digits · Discrete Math

Step by step

The question

Question: find the last digit of 7¹⁰⁰.

last digit of 7100

7 to the power 100 has 85 digits.

Too big to work out by hand.

7100 has 85 digits!

The last digit is the remainder after dividing by 10.

So we work mod 10.

last digit = the remainder after ÷ 10

1 Small powers first

Let's make a table of small powers.

Each one is the one before times 7.

We only keep the remainder: the big part never matters.

only the remainder matters

7 to the 1 is 7.

7
7

Then 7 times 7 is 49.

7 × 7 = 49

49 mod 10 is 9.

And so on.

9
9 × 7 = 63
3
3 × 7 = 21
1
1 × 7 = 7
7

2 Find the pattern

At k = 5 we are back to 7.

From here everything repeats.

So the pattern 7, 9, 3, 1 repeats every 4 powers.

repeats every 4: 7, 9, 3, 1, 7, 9, 3, 1, ...

3 Where 100 lands

100 divided by 4: 25 full patterns, and 0 left over.

100 = 4 × 25 + 0

Careful!

Nothing left over means we end at the end of a pattern: the same place as k = 4.

Careful: not k = 0 ✗

So 7 to the 100 is like k = 4: the last one of the pattern.

So the last digit of 7¹⁰⁰ is 1.

last digit of 7100 = 1

4 Check

A computer can work out all 85 digits: 323447, and so on, 0001.

computer: 7100 = 323447...0001

It ends in 1, the same as our pattern.

Right!

last digit: 1

Let's look back.

First: small powers first.

Then: find the pattern.

Then: where 100 lands.

Last: check.

Answer
last digit of 7100 = 1

Your turn

Try this one yourself, then check:

last digit of 948
Show the answer
the last digit of 9⁴⁸ = 1

More from Powers mod n, last digits

The whole lesson: Powers mod n, last digits →