document.write( "Question 160158: Hi-I was trying to help my 6th grader with his math homework. Many years since I have done any, the problem was from a work sheet. A Frog is in a 10 foot well, climbs 3 feet during the day and slides back 2 feet at night. At what point will the frog make it to the 10 foot level and be able to crawl out? I thought the answer would be 8 days, but I did not have a formula to use. Would you please help out a frustrated dad?? Thanks for your time. \n" ); document.write( "
Algebra.Com's Answer #118214 by gonzo(654)\"\" \"About 
You can put this solution on YOUR website!
goes up 3 in the day and goes down 2 in the night.
\n" ); document.write( "at the end of the first day there's a gain of 3.
\n" ); document.write( "at the end of each succeeding day there's a gain of 1 (loss of 2 during the night).
\n" ); document.write( "end of day 1 he's up 3
\n" ); document.write( "end of day 2 he's up 4
\n" ); document.write( "end of day 3 he's up 5
\n" ); document.write( "end of day 7 he's up 9
\n" ); document.write( "end of day 8 he's up 10
\n" ); document.write( "you're correct.
\n" ); document.write( "number of days is 8.
\n" ); document.write( "now the formula.
\n" ); document.write( "let x be the number of days needed to get out of the well.
\n" ); document.write( "formula looks like it will be
\n" ); document.write( "(x-1)*(3-2) + 3 = 10
\n" ); document.write( "what this says is that you have x-1 days where the net gain was only 1.
\n" ); document.write( "that would be the loss of 2 the night before plus the gain of 3 during the day.
\n" ); document.write( "the + 3 means you got a net gain of 3 the first day.
\n" ); document.write( "so (x-1)*(3-2) + 3 = 10
\n" ); document.write( "solving you get
\n" ); document.write( "(x-1)(1) + 3 = 10
\n" ); document.write( "x - 1 + 3 = 10
\n" ); document.write( "x - 1 = 7
\n" ); document.write( "x = 8
\n" ); document.write( "i must admit i didn't think about it correctly the first time i looked at it.
\n" ); document.write( "congratulations on good logic.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );