document.write( "Question 477751: what is the unit digit of 7raisedto 155 how to solve it? \n" ); document.write( "
Algebra.Com's Answer #852396 by ikleyn(52946)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "What is the unit digit of 7 raised to 155 ? How to solve it?
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "        The problems of this type are very popular. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "        You often can find them in tests, in Math competitions, in Math Olympiads, in entrance exams \r
\n" ); document.write( "\n" ); document.write( "        and even in the interview.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "        Therefore, to be successful in all these aspects, you need to know VERY FIRMLY\r
\n" ); document.write( "\n" ); document.write( "        HOW TO solve such problems.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "        If such a problem is given to you, the right solution should bounce off you \r
\n" ); document.write( "\n" ); document.write( "        like a ball bounces off a wall.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "- - - - - - - - S O L U T I O N - - - - - - - - \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "If you will rise your number 7 in consecutive degrees, you will find very soon, that the last \r\n" );
document.write( "digit is repeating.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "This is not accidental - it is natural.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Indeed, every time you rise to the next degree, the last digit is a result of multiplication \r\n" );
document.write( "of the previous last digit by 7.\r\n" );
document.write( "\r\n" );
document.write( "But the number of possible last digits is limited: it is only 10, because there are 10 digits,\r\n" );
document.write( "from 0 to 9, in all.\r\n" );
document.write( "\r\n" );
document.write( "Therefore inevitably, some last digit will repeat one of preceding last digits.\r\n" );
document.write( "\r\n" );
document.write( "As soon as it will happen for the first time, the digits will be repeating cyclically.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Let's consider how it works in our case. I will not write whole many-digit numbers,\r\n" );
document.write( "since there is no need in it. I only will write and track the last digit.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "    degree k          1    2    3    4    5    6    7    8    9\r\n" );
document.write( "\r\n" );
document.write( "    the last digit    7    9    3    1    7    9    3    1    7\r\n" );
document.write( "    of  \"7%5Ek\"\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "You see that first time repeating happens at k = 5,  and after k=4 the cycle (7,9,3,1)  is repeating again and again.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, for  \"7%5E155\",  there are many repeating cycles of the length 4 - they are not interesting for us.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The number 155 gives the remainder  3  when divided by 4:  155 = 4*38 + 3.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "It tells us that the sough last digit in the number  \"7%5E155\"  is the third term in the basic  cycle of four digits  {7, 9, 3, 1}.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "From it, we conclude that the last digit of the number  \"7%5E155\"  is 3, since '3' is the third term of the cycle {7, 9, 3, 1}.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "It is HOW TO such problems should be solved and analyzed.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );