The last two digits are not a rounding question, they are an exact residue: I am looking for the unique x between nought and ninety-nine with x congruent to 7 to the 2026 modulo 100 - one residue class, nothing fuzzy.
Two facts decide the toolkit straight away. The modulus 100 is 4 times 25 and the greatest common divisor of 7 and 100 is 1 - so 7 is invertible modulo 100, and its powers must eventually return to one.
I am not going to multiply this out by hand: the number has 1713 digits and its leading digits 14744466697523574457 I will only use as a check at the end.
So the whole question collapses to one small thing: how many times do I have to multiply by 7 before the last two digits come back to where they started.
Euler's theorem is the reflex answer, so let me say exactly what it buys: phi of 100 is 40 and 7 to the 40 does end in 01 - but I will verify that, not assert it.
But forty is an exponent that kills the power, not the smallest one. What I actually need is the order d, the least positive exponent with 7 to the d congruent to one, and d must divide 40 - that keeps the search finite.
That leaves eight candidates: 1,2,4,5,8,10,20,40 - I will test them in ascending order rather than guess.
I am stating my answer now as something refutable: I predict d equals four, and since 2026 is congruent to two modulo four, I predict the last two digits are 49 - stated early so it can die early.
The prediction dies if 7 to the four is not congruent to one, if a proper divisor already returns to one, or if an honest expansion of 7 to the 2026 ends in any other pair.
Counting the units between one and ninety-nine directly returns forty as well.
Here is the move that decides the question: I compute the cycle itself, four lines of arithmetic. Seven, then forty-nine, then seven times forty-nine is three hundred and forty-three, so forty-three, then seven times forty-three is three hundred and one, so one.
The cycle runs 07 then 49 then 43 then 01, and it closes because multiplying 01 by 7 returns 07 - from there the same four residues repeat forever.
Notice this also proves minimality: neither 7 nor 49 is congruent to one, so the order is not 1 or 2 - and it is four, because 7 to the four is 2401 which ends 01 on the board.
The picture to keep in mind is the one on the board: multiplication by seven is a rotation of a four-node wheel, and a large exponent is just a number of full turns plus a remainder.
Now the reduction. Two thousand and twenty-six divided by four is five hundred and six remainder two - I check that by multiplying back: four times five hundred and six is two thousand and twenty-four, plus two is the exponent.
So 7 to the 2026 is 7 to the four, raised to the five hundred and six, then multiplied by 7 squared. The first bracket is congruent to one, so the whole thing lands on 49 - the leftover factor is the answer.
Equivalently, on the wheel: two thousand and twenty-six steps around it leave remainder two, and remainder two is the second entry of the cycle, which is 49 as predicted.
If I had reduced modulo forty instead, I would get remainder twenty-six, and twenty-six is congruent to two modulo four, so the same entry - the longer route is consistent but strictly wasteful.
A congruence chain can hide an indexing slip, so my second route shares no step with the first: I compute the number itself, two thousand and twenty-six ordinary multiplications by seven, with no modular reduction anywhere.
The expansion has one thousand seven hundred and thirteen digits, it begins 14744466697523574457 and it ends 97424096455973105649 on the board.
Reading the last two characters off that string gives 49 - tens digit four, units digit nine - and dividing the exact integer by one hundred leaves remainder 49 with a one thousand seven hundred and eleven digit quotient.
So the structural route and the brute-force route are independent and they return the same two digits. That is the answer, not a guess: it is 49 modulo 100.
One caution about how not to do this: as a floating point number, 7 to the 2026 overflows double precision entirely, and even a scientific-notation display keeps leading digits only - the last digits are exactly what a float destroys.
Now I try to break my own answer. Third route, through the factors of one hundred: modulo four, seven is minus one and the exponent is even, so the residue is one. Modulo twenty-five, the cycle of seven is 07,24,18,01 - again of length four, and remainder two gives twenty-four.
So the answer must be the unique number below one hundred that is one modulo four and twenty-four modulo twenty-five. The second condition leaves four candidates, twenty-four, forty-nine, seventy-four, ninety-nine, and of those only forty-nine is one modulo four.
The sweep on the board is the sensitivity test: two thousand twenty-four gives 01 - twenty-five gives 07 - twenty-six gives 49 - twenty-seven gives 43 - a one-year slip in the exponent changes the answer, which is precisely why the residue class of the exponent has to be computed and not estimated.
None of my five kill criteria fired, and the three routes - order, exact integer, and Chinese remainder - agree on 49 every time.
So the last two digits are 49 - end of story - and the reasoning is a cycle of length four plus one division with remainder.
Generalised: for this base the last two digits of 7 to the n remember nothing about n except n modulo four, and the dictionary reads 01,07,49,43 in remainder order.
The method transfers, but only where it is justified: the base has to be coprime to one hundred, and the cycle length belongs to the base, not to the modulus - three has order twenty modulo one hundred, eleven has order ten.
For a base like two, which shares a factor with the modulus, the powers never return to 02 at all, so there is no cycle from the start and Euler's theorem is not even applicable; there the honest route is again the Chinese remainder theorem, modulo four and modulo twenty-five separately.
And a last test of whether I understand my own machinery: for a tower, seven to the power seven to the two thousand twenty-six, the exponent is read modulo four, it is congruent to one, and the tower ends 07 - a different answer from the same cycle.
Reducing modulo forty is correct - twenty-six is the remainder, and seven to the twenty-six does end in forty-nine - so Euler alone gets me there.
The cost is that I still have to evaluate seven to the twenty-six, whereas the order four reduces the problem to a two-line cycle I can write down.
The relationship is that the order divides phi, here four divides forty, and there is even a better universal exponent, lambda of one hundred, which is twenty; seven to the twenty also ends in 01 on the board.
And phi is only an upper bound in general: three modulo one hundred has order twenty and eleven has order ten, so the cycle length is a property of the base that has to be measured.
With exponent twenty twenty-five the remainder modulo four is one, so the answer would be 07 and not 49 - the sensitivity sweep on the board shows the four neighbouring values 01,07,49,43 in remainder order.
With base two the argument breaks for a different reason: two shares a factor with one hundred, so it is not a unit, its powers never come back to 02 in the list, and there is no cycle to reduce an exponent modulo.
Concretely the powers of two run 02,04,08,16,32,64,28,56, and only from the second term on do they become periodic, with period twenty.
The robust replacement is the Chinese remainder theorem: modulo four every power of two from n equals two onwards is zero, and modulo twenty-five two has order twenty - so the method survives, the shortcut does not.
Yes. For every positive n, seven to the n modulo one hundred equals the entry of the four-cycle indexed by n modulo four, and I checked all one hundred values from one to one hundred with no exception.
Equivalently, seven to the a and seven to the b have the same last two digits if and only if a and b are congruent modulo four.
That is what makes towers easy: for seven to the power seven to the two thousand twenty-six, I only need the exponent modulo four, it is one, and the tower ends 07 - which I verified by exact modular exponentiation as well.
And the same sentence one level up: for the last three digits the modulus is one thousand, where seven has order twenty rather than four, so the exponent is read modulo twenty - the period grows with the modulus, and 7 to the 2026 ends 649 there.