document.write( "Question 1205936: Hi can you help me with this question:
\n" ); document.write( "What is the remainder when 11^128 is divided by 43?
\n" ); document.write( "

Algebra.Com's Answer #843038 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer: 35\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Explanation\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I'll use Fermat's Little Theorem which is not to be confused with Fermat's Last Theorem.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Fermat's Little Theorem is
\n" ); document.write( "
\n" ); document.write( "where 'a' is an integer and p is prime\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If p is not a factor of 'a', then an extension of Fermat's Little Theorem states that
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is very useful due to the 1 on the right hand side.
\n" ); document.write( "If a = 11 and p = 43, then,
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "How can we get the exponent 42 to turn into 128?
\n" ); document.write( "Well let's divide the values to get 128/42 = 3.0476 approximately.
\n" ); document.write( "So we need to triple 42 to get close to 128.
\n" ); document.write( "Let's cube both sides of the last congruence equation shown above.
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "I'm using the exponent rule that (a^b)^c = a^(b*c).
\n" ); document.write( "Notice that cubing 1 results in 1. This is why the \"1\" is so useful.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have the exponent at 126 but we need it at 128 instead.
\n" ); document.write( "So we need to add on 2. To do this, we multiply both sides by 11^2 as indicated in the scratch work below.
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Notice that 121/43 = 2 remainder 35
\n" ); document.write( "The remainder is all we care about when concerning modular arithmetic.
\n" ); document.write( "This is why \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since we conclude that \"%2811%5E128%29%2F43\" leads to some quotient with remainder 35.
\n" ); document.write( "Luckily we don't need to worry about the quotient.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Need a way to do this without using Fermat's Little Theorem?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's look at powers of 11 mod 43 to see if we can spot any patterns.
  • 11^1 = 11 (mod 43)
  • 11^2 = 121 = 35 (mod 43) ... refer to the previous section
  • 11^3 = 11*11^2 = 11*35 = 385 = 41 (mod 43) ... since 385/43 = 8 remainder 41
  • 11^4 = 11*11^3 = 11*41 = 451 = 21 (mod 43) ... since 451/43 = 10 remainder 21
Here's a table summarizing the pattern so far.
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
n11^n mod 43
111
235
341
421

\n" ); document.write( "Let's extend that table somewhat
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
n11^n mod 43
111
235
341
421
516
64
71
811
935
1041

\n" ); document.write( "I'll let the student do the scratch work for n = 5 through n = 10.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Notice once reaching remainder 1 (when n = 7), the pattern of remainders repeats.
\n" ); document.write( "That repeating pattern is {11, 35, 41, 21, 16, 4, 1} which consists of 7 items.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The pattern repeats itself every 7 items.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Divide 128 over 7 to find the remainder.
\n" ); document.write( "128/7 = 18 remainder 2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The \"remainder 2\" tells us to look at the 2nd slot of the pattern {11, 35, 41, 21, 16, 4, 1} which is 35
\n" ); document.write( "In other words, 11^2 and 11^128 have the same remainder when in mod 43.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For more practice, check out this similar question
\n" ); document.write( "https://www.algebra.com/algebra/homework/complex/Complex_Numbers.faq.question.1205778.html
\n" ); document.write( "
\n" ); document.write( "
\n" );