document.write( "Question 278810: A student wants to know how many integers between 1 and 1000 are a multiple of 4 or a multiple of 5. She wonders if it is correct to find the number of those integers that are multiples of 4 and add the number of those that are multiples of 5. How do you respond? \n" ); document.write( "
Algebra.Com's Answer #202801 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
not quite.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "there are certain numbers that are both multiples of 5 and multiples of 4 and those need to be subtracted from the total because they will be counted twice.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for example:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "assume the numbers were from 1 to 100 (we can count those easier.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "100 / 4 = 25
\n" ); document.write( "100 / 5 = 20
\n" ); document.write( "100 / 20 = 5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The total of numbers should be 25 + 20 - 5 = 40 numbers.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "we would have:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100\r
\n" ); document.write( "\n" ); document.write( "5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "20 is counted twice so we have to subtract 1 of them.
\n" ); document.write( "40 is counted twice so we have to subtract 1 of them.
\n" ); document.write( "60, 80, and 100 are counted twice so we have to subtract 1 of them.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the same principle applies from 1 to 1000.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "number of 4's is 1000/4 = 250
\n" ); document.write( "number of 5's is 1000/5 = 200
\n" ); document.write( "number of 20's (4*5) is 1000/20 = 50
\n" ); document.write( "total is 250 + 200 - 50 = 400\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "bottom line is you have to subtract the numbers that are both divisible by 4 and 5 to avoid them from being double counted.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );