Steply

Last digit of 7^1234

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 71234

7 to the power 1234 has 1043 digits.

Too big to work out by hand.

71234 has 1043 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 1234 lands

1234 divided by 4: 308 full patterns, and 2 left over.

1234 = 4 × 308 + 2

Careful!

The pattern is all we need.

The full number is far too big.

Careful: never work out 7¹²³⁴ itself

So 7 to the 1234 is like k = 2.

So the last digit of 7¹²³⁴ is 9.

last digit of 71234 = 9

4 Check

A computer can work out all 1043 digits: 709547, and so on, 0849.

computer: 71234 = 709547...0849

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 1234 lands.

Last: check.

Answer
last digit of 71234 = 9

Your turn

Try this one yourself, then check:

last digit of 467
Show the answer
the last digit of 4⁶⁷ = 4

More from Powers mod n, last digits

The whole lesson: Powers mod n, last digits →