document.write( "Question 471736: the number of integers between 1 and 250 that are divisible by2,5,7 is \n" ); document.write( "
Algebra.Com's Answer #323516 by richard1234(7193)\"\" \"About 
You can put this solution on YOUR website!
I'll denote {x|n} be the set of integers x <= 250 that divide n.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "By inclusion-exclusion principle, the number of integers is {x|2} + {x|5} + {x|7} - {x|2,5} - {x|2,7} - {x|5,7} + {x|2,5,7} (this is so that we don't overcount or undercount certain numbers like 10 or 140).\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Hence, the number of integers is 125 + 50 + 35 - 25 - 17 - 7 + 3 = 164.
\n" ); document.write( "
\n" );