document.write( "Question 884963: Find the sum of all positive integers which are less than 2010 and are not divisible by 3 \n" ); document.write( "
Algebra.Com's Answer #534820 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
First, I looked at the numbers starting with 3
\n" ); document.write( "that ARE divisible by 3:
\n" ); document.write( "3, 6, 9, 12, 15, . . .
\n" ); document.write( "----------------------
\n" ); document.write( "I noticed that:
\n" ); document.write( "3 = 1 + 2
\n" ); document.write( "6 = 2 + 4
\n" ); document.write( "9 = 3 + 6
\n" ); document.write( "12 = 4 + 8
\n" ); document.write( " . . .
\n" ); document.write( "-------------
\n" ); document.write( "And then:
\n" ); document.write( "3 = 1 + 1 + 1
\n" ); document.write( "6 = 2 + 2 + 2
\n" ); document.write( "9 = 3 + 3 + 3
\n" ); document.write( "12 = 4 + 4 + 4
\n" ); document.write( " . . .
\n" ); document.write( "----------------
\n" ); document.write( "How MANY numbers less than 2010
\n" ); document.write( "are divisible by 3?
\n" ); document.write( "That would be \"+2010+%2F+3+=+670+-+1+=+669+\"
\n" ); document.write( "------------------------------------------
\n" ); document.write( "I know how to find the sum 1 + 2 + 3 + 4 + 5 + . . . + n
\n" ); document.write( "It is \"+%28+n%2A%28+n+%2B+1+%29+%29+%2F+2+\"
\n" ); document.write( "In the case of \"+n+=+5+\", it is:
\n" ); document.write( "\"+%28+5%2A6+%29+%2F+2+=+15+\"
\n" ); document.write( "---------------------------
\n" ); document.write( "So, it looks like I need to find
\n" ); document.write( "\"+%28+n%5B1%5D%2A%28+n%5B1%5D+%2B+1+%29+%29+%2F+2+\" where \"+n%5B1%5D+=+2009+\"
\n" ); document.write( "Then I need to subtract:
\n" ); document.write( "\"+3%2A%28%28+n%5B2%5D%2A%28+n%5B2%5D+%2B+1+%29+%29+%2F+2%29+\" where \"+n%5B2%5D+=+669+\"
\n" ); document.write( "----------------------------------------------
\n" ); document.write( "\"+%28+2009%2A2010+%29+%2F+2+-+%283%2F2%29%2A%28+669%2A610+%29+\"
\n" ); document.write( "\"+4038090+%2F+2+-+%28+3%2F2+%29%2A408090+\"
\n" ); document.write( "\"+2019045+-+612135+=+1406910+\"
\n" ); document.write( "I get 1,406,910 for the sum
\n" ); document.write( "---------------------------
\n" ); document.write( "Maybe there is an easier way to do this, though
\n" ); document.write( "================================
\n" ); document.write( "Checking it for less than 1 through 20, you have
\n" ); document.write( "1 + 2 + 4 + 5 + 7 + 8 + 10 + 11 + 13 + 14 + 16 + 17 + 19
\n" ); document.write( "\"+127+\" total
\n" ); document.write( "----------------
\n" ); document.write( "Using the formula:
\n" ); document.write( "\"+19%2F3+=+6+\" ( nearest whole number )
\n" ); document.write( "\"+%28+n%5B1%5D%2A%28+n%5B1%5D+%2B+1+%29+%29+%2F+2+\"
\n" ); document.write( "\"+%28+19%2A20+%29+%2F+2+=+190+\"
\n" ); document.write( "and
\n" ); document.write( "\"+3%2A%28%28+n%5B2%5D%2A%28+n%5B2%5D+%2B+1+%29+%29+%2F+2%29+\"
\n" ); document.write( "\"+%28+3%2F2%29%2A%28+6%2A7+%29+=+63+\"
\n" ); document.write( "\"+190+-+63+=+127+\"
\n" ); document.write( "seems to work\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );