document.write( "Question 1205868: Hi, So my question is:
\n" ); document.write( "A bag of lollies is shared. When shared equally among 4 people, there are 2 lollies left. When shared equally among 9 people, there are 5 lollies left. When shared equally among 7 people, there are 2 lollies left.
\n" ); document.write( "Determine the smallest possible number of lollies that could have been in the bag as well as the general solution.
\n" ); document.write( "I have tried a few different ways and get different answers.I either get 86 or 94. Can you help? Thank you
\n" ); document.write( "

Algebra.Com's Answer #842937 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "A bag of lollies is shared. When shared equally among 4 people, there are 2 lollies left.
\n" ); document.write( "When shared equally among 9 people, there are 5 lollies left. When shared equally among 7 people,
\n" ); document.write( "there are 2 lollies left.
\n" ); document.write( "Determine the smallest possible number of lollies that could have been in the bag as well as the general solution.
\n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "86 is the correct answer, as you can easily check it  ON  YOUR  OWN.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "94 is incorrect answer, as you can easily check it  ON  YOUR  OWN.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I do not understand, why do you panic, having a correct answer in your hands.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You always can easily check it  ON  YOUR  OWN  if the answer is correct or not,
\n" ); document.write( "if you do understand correctly the meaning of the problem.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "/////////////////////////\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "        Edwin presented huge long solution, which may scare you.
\n" ); document.write( "        Therefore,  I decided to post here my solution,  which is a standard method
\n" ); document.write( "        for such problems and is much shorter.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let N be our number.\r\n" );
document.write( "\r\n" );
document.write( "Subtract 2 from N and consider the number N-2.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Since N gives the remainder 2 when is divided by 4 and by 7, we conclude that \r\n" );
document.write( "the number (N-2) is divided by 4 and by 7 with no remainder.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Hence, N-2 is divided by 4*7 = 28  (since 4 and 7 are relatively prime numbers).\r\n" );
document.write( "\r\n" );
document.write( "So, we can write  N-2 = 28k,  where \"k\" is some integer number.\r\n" );
document.write( "Hence,  N = 28k + 2.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Therefore, we will consider the numbers of the form 28k+2 to find value of \"k\" such \r\n" );
document.write( "that 28k+2 gives the remainder 5 when is divided by 9.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Try some values k= 1, 2, 3, 4, 5 . . . .\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "It will not take long time, since k=3 just provides you the number N= 28*3+2 = 86,\r\n" );
document.write( "which gives the remainder 5 when is divided by 9.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "So, the number 86 is the ANSWER.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "......................\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you want to see many other similar  (and different)  solved problems,  look into the lessons\r
\n" ); document.write( "\n" ); document.write( "    - The number that leaves a remainder 1 when divided by 2, by 3, by 4, by 5 and so on until 9\r
\n" ); document.write( "\n" ); document.write( "    - The number which gives remainder 4 when divided by 7, remainder 5 when divided by 8 and remainder 6 when divided by 9 \r
\n" ); document.write( "\n" ); document.write( "in this site. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "These problems are typical for this subject, and reading these lessons,
\n" ); document.write( "you will get familiar with the basic methods.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Problems of this type are introductory into the subject on divisibility and remainders.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In advanced Math circles/classes, students start learning this material at 4th grade.
\n" ); document.write( "May be, it is too early, but learning it, let say, at 5th - 6th grade is just good time.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "It is absolutely clear that 4th, 5th and even 6th grade student is not able to perceive long reasoning.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "But such a student should be able to easy perceive what is written in my post - it is why I wrote it here.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\\\\\\\\\\\\\\\\\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since Edwin continue this discussion, I'd like to answer on his very first point.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Edwin writes that \"Ikleyn believes trial and error is legitimate, but it isn't!\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "                - No.   It is not so.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "What I state is another statement: \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "        \"If trial and error produces the answer, which after checking
\n" ); document.write( "        is proven to be correct, then the answer is correct
\n" ); document.write( "        and the solution is legitimate.\"\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Edwin, it is not a good style to make a discussion
\n" ); document.write( "by attributing me statements that I did not make,
\n" ); document.write( "and then disproving these statements.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Such method of making discussion was known back in ancient Greece,
\n" ); document.write( "and it has the name - which I do not want to pronounce here.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );