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 #845759 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "Let m and n be non-negative integers. If m = 6n + 2, then what integer between 0 and m
\n" ); document.write( "is the inverse of 2 modulo m? Answer in terms of n.
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Notice that m = 6n+2 is an even integer number, for any integer number n.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Let's assume that an integer x between 0 and m is the inverse of 2 modulo m.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "It means that 2*x = 1 mod m, which is the same as to say that\r\n" );
document.write( "\r\n" );
document.write( "    2x - 1 is a multiple of m :   2x - 1 = k*m.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "But 2x is an even number, and k*m is an even number, since \"m\" is even.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Therefore, this equality  2x - 1 = km  is not possible with integer x and \"k\".\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Hence, there is NO any integer between 0 and m which is inverse of 2 modulo m.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER.  There is NO any integer between 0 and m which is inverse of 2 modulo m.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "---------------\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "What I proved in my post,  in terms of abstract algebra is  THIS  general statement:\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "         In the ring of integers modulo  m,   Z/m,   where  \" m \"  is an even number,\r
\n" ); document.write( "\n" ); document.write( "         the class  {2 mod m}  is  NOT  an invertible element.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In opposite, in such a ring,  the class  {2 mod m}  is a divisor of zero;
\n" ); document.write( "and it is well known fact of abstract algebra that in a ring a divisor of zero can not be invertible.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );