document.write( "Question 1207719: Let $m$ and $n$ be non-negative integers. If $m = 6n + 2$, then what integer between $0$ and $m$ is the inverse of $2$ modulo $m$? Answer in terms of $n$. \n" ); document.write( "
Algebra.Com's Answer #845760 by math_tutor2020(3816)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "I'll follow a similar line of thinking as the other tutor, but show a slightly different pathway.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let x be some integer in the set {0,1,2,3,...,m-2,m-1} such that 2x = 1 (mod m), assuming such a value exists.
\n" ); document.write( "x is the multiplicative inverse of 2 in mod m\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This converts to 2x-1 = km for some integer k.
\n" ); document.write( "The general rule is that if a = b (mod n) then a-b is a multiple of n, i.e. a-b = kn for some integer k.
\n" ); document.write( "Rephrased: a & b generate the same remainder when dividing by n.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That slight tangent aside, let's revisit 2x-1 = km to apply a substitution.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "2x-1 = k*m
\n" ); document.write( "2x-1 = k(6n+2) ......... plug in m = 6n + 2
\n" ); document.write( "2x-1 = 2k(3n+1)
\n" ); document.write( "2x - 2k(3n+1) = 1
\n" ); document.write( "2(x - k(3n+1) ) = 1
\n" ); document.write( "2(some integer) = 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The left hand side on the last line is always even, but the right hand side is odd. This contradiction proves that there aren't any integer solutions to 2x-1 = km where m = 6n+2.
\n" ); document.write( "By extension, there aren't any solutions to 2x = 1 (mod m) either.
\n" ); document.write( "2 does not have a multiplicative inverse in mod m.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer: No solutions.
\n" ); document.write( "
\n" ); document.write( "
\n" );