Steply

Last digit of 9^77

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 9⁷⁷.

last digit of 977

9 to the power 77 has 74 digits.

Too big to work out by hand.

977 has 74 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 9.

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

only the remainder matters

9 to the 1 is 9.

9
9

Then 9 times 9 is 81.

9 × 9 = 81

81 mod 10 is 1.

And so on.

1
1 × 9 = 9
9

2 Find the pattern

At k = 3 we are back to 9.

From here everything repeats.

So the pattern 9, 1 repeats every 2 powers.

repeats every 2: 9, 1, 9, 1, ...

3 Where 77 lands

77 divided by 2: 38 full patterns, and 1 left over.

77 = 2 × 38 + 1

Careful!

The pattern is all we need.

The full number is far too big.

Careful: never work out 9⁷⁷ itself

So 9 to the 77 is like k = 1.

So the last digit of 9⁷⁷ is 9.

last digit of 977 = 9

4 Check

A computer can work out all 74 digits: 299690, and so on, 8169.

computer: 977 = 299690...8169

It ends in 9, the same as our pattern.

Right!

last digit: 9

Let's look back.

First: small powers first.

Then: find the pattern.

Then: where 77 lands.

Last: check.

Answer
last digit of 977 = 9

Your turn

Try this one yourself, then check:

last digit of 351
Show the answer
the last digit of 3⁵¹ = 7

More from Powers mod n, last digits

The whole lesson: Powers mod n, last digits →