document.write( "Question 328501: I need to find the sum of the first n terms of the g.p. 4,12,36... and find the least value of n for which the sum is greater than 500,000.
\n" ); document.write( "I know that
\n" ); document.write( "r = 3 and a = 4 but then I am stuck.
\n" ); document.write( "

Algebra.Com's Answer #235309 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
the formula is:
\n" ); document.write( "\"S+=+a%2A%28%281-r%5E%28n%2B1%29%29%2F%281+-+r%29%29\"
\n" ); document.write( "\"a+=+4\"
\n" ); document.write( "\"r+=+3\"
\n" ); document.write( "\"S+=+4%2A%28%281-3%5E%28n%2B1%29%29%2F%281+-+3%29%29\"
\n" ); document.write( "\"S+=+4%2A%28%281-3%5E%28n%2B1%29%29%2F%28-2%29%29\"
\n" ); document.write( "I'll find out when the sum is greater than 500000
\n" ); document.write( "\"S+=+4%2A%281-3%5E%28n%2B1%29%29%2F%28-2%29\"
\n" ); document.write( "\"S+=+%28-2%29%2A%281-3%5E%28n%2B1%29%29\"
\n" ); document.write( "\"S%2F%28-2%29+=+1+-+3%5E%28n%2B1%29\"
\n" ); document.write( "Multiply both sides by \"-1\"
\n" ); document.write( "\"S%2F2+%2B+1+=+3%5E%28n%2B1%29\"
\n" ); document.write( "I can take the log of both sides
\n" ); document.write( "\"log%28S%2F2+%2B+1%29+=+%28n%2B1%29%2Alog%283%29\"
\n" ); document.write( "If \"S+=+50000\", the left side is close to \"log%282.5%29+%2B+4\", so
\n" ); document.write( "\"%28log%282.5%29+%2B+4%29%2Flog%283%29+=+n+%2B+1\"
\n" ); document.write( "\"n+=+%28log%282.5%29+%2B+4%29%2Flog%283%29+-+1\"
\n" ); document.write( "\"n+=+4.39794%2F.477121+-+1\"
\n" ); document.write( "\"n+=+9.21766+-+1\"
\n" ); document.write( "\"n+=+8.21766\"
\n" ); document.write( "Putting this back into formula,
\n" ); document.write( "\"S+=+4%2A%28%281-3%5E%28n%2B1%29%29%2F%28-2%29%29\"
\n" ); document.write( "\"S+=+4%2A%28%281-3%5E9.21766%29%2F%28-2%29%29\"
\n" ); document.write( "\"S+=+4%2A%281+-+25000.08621%29%2F%28-2%29\"
\n" ); document.write( "\"S+=+-24999.08612%2A%28-2%29\"
\n" ); document.write( "\"S+=+49998.17225\"
\n" ); document.write( "The next whole number for \"n\" is \"9\"
\n" ); document.write( "I think that would put \"S\" over \"50000\"
\n" ); document.write( "\"8\" seems to be too small
\n" ); document.write( "
\n" );