document.write( "Question 766648: Freddie the frog is climbing up a well. Everyday he climbs up 3 m but some nights he falls asleep and slips back 4m. At the start of the sixteenth day, he has climbed a total of 29m. On how many nights was he asleep? \n" ); document.write( "
Algebra.Com's Answer #467121 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
One time period is a day and a night
\n" ); document.write( "The frog either advance by +3m or
\n" ); document.write( "falls back \"+3+-+4+=+-1+\"m
\n" ); document.write( "----------------------
\n" ); document.write( "Let \"+a+\" = number of periods of +3m gain
\n" ); document.write( "Let \"+b+\" = number of periods of -1m loss
\n" ); document.write( "----------------------
\n" ); document.write( "(1) \"+a+%2B+b+=+15+\" ( the 16th day hasn't happened yet )
\n" ); document.write( "(2) \"+3a+-+b+=+29+\"
\n" ); document.write( "------------------
\n" ); document.write( "Add the equations
\n" ); document.write( "\"+4a+=+44+\"
\n" ); document.write( "\"+a+=+11+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+11+%2B+b+=+15+\"
\n" ); document.write( "(1) \"+b+=+4+\"
\n" ); document.write( "------------
\n" ); document.write( "The frog slept 4 nights
\n" ); document.write( "check:
\n" ); document.write( "(2) \"+3a+-+b+=+29+\"
\n" ); document.write( "(2) \"+3%2A11+-+4+=+29+\"
\n" ); document.write( "(2) \"+33+-+4+=+29+\"
\n" ); document.write( "(2) \"+29+=+29+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" ); document.write( "
\n" );