.
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.
Determine the smallest possible number of lollies that could have been in the bag as well as the general solution.
~~~~~~~~~~~~~~~~~~~~~~~~
86 is the correct answer, as you can easily check it ON YOUR OWN.
94 is incorrect answer, as you can easily check it ON YOUR OWN.
I do not understand, why do you panic, having a correct answer in your hands.
You always can easily check it ON YOUR OWN if the answer is correct or not,
if you do understand correctly the meaning of the problem.
/////////////////////////
Edwin presented huge long solution, which may scare you.
Therefore, I decided to post here my solution, which is a standard method
for such problems and is much shorter.
Let N be our number.
Subtract 2 from N and consider the number N-2.
Since N gives the remainder 2 when is divided by 4 and by 7, we conclude that
the number (N-2) is divided by 4 and by 7 with no remainder.
Hence, N-2 is divided by 4*7 = 28 (since 4 and 7 are relatively prime numbers).
So, we can write N-2 = 28k, where "k" is some integer number.
Hence, N = 28k + 2.
Therefore, we will consider the numbers of the form 28k+2 to find value of "k" such
that 28k+2 gives the remainder 5 when is divided by 9.
Try some values k= 1, 2, 3, 4, 5 . . . .
It will not take long time, since k=3 just provides you the number N= 28*3+2 = 86,
which gives the remainder 5 when is divided by 9.
So, the number 86 is the ANSWER.
Solved.
......................
If you want to see many other similar (and different) solved problems, look into the lessons
- The number that leaves a remainder 1 when divided by 2, by 3, by 4, by 5 and so on until 9
- The number which gives remainder 4 when divided by 7, remainder 5 when divided by 8 and remainder 6 when divided by 9
in this site.
These problems are typical for this subject, and reading these lessons,
you will get familiar with the basic methods.
Problems of this type are introductory into the subject on divisibility and remainders.
In advanced Math circles/classes, students start learning this material at 4th grade.
May be, it is too early, but learning it, let say, at 5th - 6th grade is just good time.
It is absolutely clear that 4th, 5th and even 6th grade student is not able to perceive long reasoning.
But such a student should be able to easy perceive what is written in my post - it is why I wrote it here.
\\\\\\\\\\\\\\\\
Since Edwin continue this discussion, I'd like to answer on his very first point.
Edwin writes that "Ikleyn believes trial and error is legitimate, but it isn't!".
- No. It is not so.
What I state is another statement:
"If trial and error produces the answer, which after checking
is proven to be correct, then the answer is correct
and the solution is legitimate."
Edwin, it is not a good style to make a discussion
by attributing me statements that I did not make,
and then disproving these statements.
Such method of making discussion was known back in ancient Greece,
and it has the name - which I do not want to pronounce here.
Question 1205868
Ikleyn believes trial and error is legitimate, but it isn't! There is no
guarantee that only a small number of trials is all you'll need. You may have
to try hundreds of values. A problem is not solved mathematically unless it
requires no trial and error. The way I solved it above, "long and scary" as she
thinks it is, (longer than necessary because I don't skip steps), but the way I
solved it requires no trial and error.
Many mathematicians have balked at the computer proof of the four-color problem.
For the only way it has been "proved" is not with mathematics, but to check out
all the possible types of maps to show that all types can be colored with only 4
colors and no two adjacent territories are colored the same. There are so many
types of maps to try, that only a computer could try them all. Mathematicians
are still looking for a mathematical proof of the problem.
Above I started this way.
Let n be the smallest possible answer.
Then there are positive integers p,q,r such that
with k positive, and small as possible
Sure, when I got here, I could have stopped and started trying values for k,
but there is no guarantee that, as Ikleyn stated,
"it will not take long time".
before I found one that worked. I could have done as she did:
"Try some values k= 1, 2, 3, 4, 5 . . . .It will not take long time..."
So I could have tried k=3, then instantly p=21, r=12,
4p+2=n
4(21)+2 = 86
And that would be the end. But it's sheer luck that that's all it took.
What is interesting is the fact that this:
"When shared equally among 9 people, there are 5 lollies left."
was redundant information.
The problem would have much harder if it had been stated this way:
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.
Edwin