ARITHMETIC WORKSHEETS

Checking a large power’s last digit through a small cycle

The last digit of a power of 7 repeats in a cycle of four: 7, 9, 3, 1. Finding where an exponent falls in that cycle gives the last digit of a number too large to display exactly.

Why only the last digit matters

The last digit of a product depends only on the last digits of its factors. For example, 17 × 23 = 391 ends in 1, the same as 7 × 3 = 21 ends in 1. So to find the last digit of 7^n you only need to track last digits as you multiply by 7 over and over. Starting from 7, the next power ends in the last digit of 7 × 7 = 49, which is 9. Then 9 × 7 = 63 gives 3, then 3 × 7 = 21 gives 1, and 1 × 7 = 7 returns to the start. This shortcut works because the last digit equals the value modulo 10, and modular arithmetic is compatible with multiplication.

The four-step cycle for 7

The cycle is 7, 9, 3, 1. The powers behind it are 7¹ = 7, 7² = 49, 7³ = 343 and 7⁴ = 2,401. Each ends in the cycle digit. Because 7⁴ ends in 1, multiplying by 7 again gives a number that ends in 7, and the pattern repeats with period 4. The power calculator confirms 7² = 49 and 7⁴ = 2401 in the first two worked cases, and 7³ = 343 and 7⁵ = 16,807 continue the same pattern. Every cycle has a position for each exponent: 1 maps to 7, 2 to 9, 3 to 3 and 0 (a multiple of 4) to 1.

Reading the exponent 100

To find the last digit of 7¹⁰⁰, divide the exponent by the cycle length. Since 100 ÷ 4 = 25 with remainder 0, the exponent is exactly 25 complete cycles. A remainder of 0 lands on the last digit of the cycle, which is 1. So 7¹⁰⁰ ends in 1. The basic calculator confirms 25 × 4 = 100 in the last worked case. Nearby exponents follow quickly: 7¹⁰¹ has remainder 1 and ends in 7, 7¹⁰² has remainder 2 and ends in 9, and 7¹⁰³ has remainder 3 and ends in 3. The remainder of the exponent decides the digit, and the quotient does not matter.

Why not read the value off the screen

The value 7¹⁰⁰ is about 3.23 × 10⁸⁴. A calculator that uses ordinary floating-point numbers keeps about 15 to 17 significant decimal digits, so it can only show the leading digits and an exponent. The final digits of the true integer are lost. Integers are exact in double precision only up to 2⁵³, about 9.007 × 10¹⁵, which means 7¹⁸ is still exact and 7¹⁹ is not. A displayed ending of zeros for a large power is a rounding artifact, not a property of the number. The cycle argument uses small exact products and avoids the precision problem completely.

Cycles for other bases

Each base has its own last-digit pattern. Powers of 2 end in 2, 4, 8, 6 and repeat, so 2¹⁰ = 1,024 ends in 4, since 10 leaves remainder 2 on division by 4. Powers of 3 cycle through 3, 9, 7, 1. Powers of 4 alternate between 4 and 6, and powers of 9 alternate between 9 and 1. Powers of 5 always end in 5, and powers of 6 always end in 6. Powers of 0, 1 and 5 and 6 have period 1, bases like 4 and 9 have period 2, and bases 2, 3, 7 and 8 have period 4. Working out the cycle takes only a few multiplications.

Handling exponents that are small

The cycle starts at the first power, so the exponent 1 maps to the first digit. A remainder of 0 means the last digit of the cycle, not the first. Mixing these up is the most common error. A check on a small exponent catches it: 7⁴ = 2,401 ends in 1, and the remainder of 4 ÷ 4 is 0, so remainder 0 corresponds to 1. If the rule had put 0 at the start of the cycle, it would predict 7 for 7⁴, which is wrong. Testing the rule on exponents 1 through 5 before applying it to 100 takes a minute and prevents an off-by-one answer.

A second exponent worked through

Find the last digit of 7²⁰²⁶. Divide the exponent by 4: 2026 = 4 × 506 + 2, so the remainder is 2. The remainder 2 corresponds to the second cycle entry, which is 9. So 7²⁰²⁶ ends in 9. Check the neighbors for consistency: 7²⁰²⁴ has remainder 0 and ends in 1, 7²⁰²⁵ ends in 7, and multiplying 7 by 7 gives 49, so the next power ends in 9. Another example is 7²⁰ with remainder 0, ending in 1, while 7²³ has remainder 3 and ends in 3. Writing the exponent as a multiple of 4 plus a remainder is the whole method, and the division by 4 is the only arithmetic. Large exponents with many digits work the same way, because only the last two digits of the exponent decide its remainder when dividing by 4: 100 is divisible by 4, so the last two digits of any exponent are enough. The basic calculator can verify the division, for example 506 × 4 + 2 = 2026.

Where this is used

Last-digit questions appear in number theory exercises, in checksum and parity checks, and in puzzles that ask for the units digit of a large expression. The reasoning is the same as computing 7^n mod 10, which is useful in modular arithmetic and in cryptography courses. In practice, software uses fast modular exponentiation that squares and reduces at each step so the numbers stay small. The cycle method is the hand version of that idea, using the fact that the sequence of remainders must eventually repeat because there are only ten possible last digits. Digit sums, casting out nines and parity checks rest on the same principle of tracking a small remainder instead of the whole number, and students meet it again in clock arithmetic.

Limits of the method

The cycle gives the last digit and nothing else. It does not give the tens digit, which needs the cycle modulo 100, and it does not recover the leading digits. For 7¹⁰⁰, the last two digits are 01, which follows from 7⁴ = 2,401 ending in 01, so any power that is a multiple of 4 ends in 01. In general the last two digits of 7^n repeat with period 4 as well, because 7⁴ = 2,401 leaves remainder 1 when divided by 100. The cycle also assumes a positive whole-number exponent. Negative or fractional exponents do not produce integer values, so a last digit has no meaning for them.

Reproduce the checks

Second cycle entry

Open the Power calculator and enter:

Base
7
Exponent
2

Expected output:

Power

49

The second last digit is nine.

Fourth cycle entry

Open the Power calculator and enter:

Base
7
Exponent
4

Expected output:

Power

2401

The fourth last digit is one.

Full-cycle count check

Open the Basic calculator and enter:

First number
25
Operation
multiply
Second number
4

Expected output:

Result

100

The requested exponent is a whole number of cycles.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Related tasks