The last digit repeats
transcript
What is the last digit of seven to a huge power? The exponent is a trillion. You cannot build it. The answer is one digit. The whole power is wasted work.
The last digits of seven's powers repeat. Seven, nine, three, one. Then back to seven. The cycle has four places. The same cycle repeats forever, however large the exponent.
The place is the exponent minus one, mod four, plus one. A trillion is a multiple of four. So it lands on place four, which holds one. Multiply that many times, keeping only the last digit.
The slip is to use the exponent mod four. An exponent of four becomes zero, and gives one. Shift by one, and four stays four. Test the base two with the exponent four. The answer is six.
Every digit has a cycle of one, two or four. Digits zero, one, five and six never change. Four divides all of the lengths, so one rule fits all.
Never build the power. Use the cycle instead. Full breakdown in the lecture.