document.write( "Question 1160025: If the greatest common divisor of two integers is 1, then we say those two integers are relatively prime to each other, how many even integers which are between 1 and 1000 (including 1 and 1000) and relatively prime to 105? \n" ); document.write( "
Algebra.Com's Answer #783201 by Edwin McCravy(20055)![]() ![]() You can put this solution on YOUR website! \r\n" ); document.write( "Since 105 written as a product of primes is 3∙5∙7, we want to subtract from the\r\n" ); document.write( "1000 integers between 1 and 1000 (including 1 and 1000), all the multiples of\r\n" ); document.write( "3,5, or 7, for that would remove all integers which have a common divisor with\r\n" ); document.write( "105 other than 1.\r\n" ); document.write( "\r\n" ); document.write( "Since the multiples of these three primes overlap, we must use the \"sieve\"\r\n" ); document.write( "formula (the method of inclusion and exclusion):\r\n" ); document.write( "\r\n" ); document.write( "\n" ); document.write( " |