This Lesson (Math circle level problem on the hundred-handed monster Briareus) was created by by ikleyn(52906)  : View Source, ShowAbout ikleyn:
Math circle level problem on the hundred-handed monster Briareus
Problem 1The hundred-handed monster Briareus was hungry and attacked a flock of 98 sheep.
He didn't want to eat them all, so he developed a strange way to decide which ones to eat.
With his hundred hands he lined the sheep up in front of him and attached tags
labeling the sheep from 1 to 98, from left to right.
First he crammed all the sheep into his mouth. Then he spat out all the even-numbered sheep.
Then for every sheep with a number divisible by three, he stuffed it into his mouth
if it was outside or spat it out if it was already inside.
He did the same for every sheep with a number divisible by 4, 5, and so on up to 98.
At the end, he devoured the sheep that were left in his mouth.
How many sheep were left in the flock after Briareus left?
Solution
In the number line, we have marked 98 integer numbers, from 1 to 98, inclusive. Let call this set Z98.
The numbers can be in one of two states: "in" (inside of the Briareus mouth) or "out" (out of the mouth).
Briareus performs 98 steps, from 1 to 98 iclusive, changing at each step the status of some subsets of the set Z98.
The initial status of all numbers in Z98, before the counter starts counting the steps, is "out":
the sheep are grazing in the field.
From this time moment, the counter is on,
counting the steps
1st step: the initial status of all numbers in Z98 is changed to opposite:
now all the sheep are inside the Briareus mouth.
2nd step: all even numbers of Z98 obtain status "out"; odd integers of Z98 still keep status "in".
3rd step: all integer numbers multiple 3, that had status "out", obtain status "in";
all integer numbers multiple 3, that had status "in", obtain status "out".
4th step: all integer numbers multiple 4, that have status "out", obtain status "in";
all integer numbers multiple 4, that have status "in", obtain status "out".
Thus for every integer number "n" in Z98, and for every step "m" from 1 to 98, the status of "n"
is changed from the current to opposite, every time when m is the divisor of n.
From this description, you easily conclude that the status of every integer number "n" remains THE SAME
as it was originally before step 1, if "n" has EVEN numbers of divisors;
and, vice versa, the status of every integer number "n" becomes OPPOSITE
to as it was originally before step 1, if "n" has ODD numbers of divisors.
(Here all divisors of integer "n" do count, including 1 and "n" itself).
+------------------------------------------+
| It is the key idea of the solution. |
+------------------------------------------+
Next, use this interesting fact from the number theory:
integer number n has odd number of divisors
if and only if the number n is a perfect square.
In opposite, integer number n has even number
of divisors if and only if number n is not
a perfect square.
Here again all the divisors of integer number "n" do count, including 1 and number "n" itself.
By applying this property to the current problem, we can conclude,
that after completing all 98 steps of changing status,
the only numbers that will get the opposite status comparing with
the initial status, are the perfect squares 1, 4, 9, 16, . . . , 81.
So, these 9 sheep with the perfect square numbers will have the status "in".
They will be in the Briareus mouth and will be eaten.
The rest 98-9 = 89 sheep with the numbers that are not perfect squares, will get the status "out",
same as their initial status before step 1, i.e. will be out the Briareus mouth and will remain on the field.
ANSWER. 89 sheep with the numbers that are not perfect squares1 4, 9, 16, . . . , 81,
will remain alive in the flock after Briareus left.
My other lessons in this site on miscellaneous problems on divisibility of integer numbers are
- Light flashes on a Christmas tree and a Least Common Multiple
- 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
- Introductory problems on divisibility of integer numbers
- Finding Greatest Common Divisor of integer numbers
- Relatively prime numbers help to solve the problem
- Solving equations in integer numbers
- Quadratic polynomial with odd integer coefficients can not have a rational root
- Proving an equation has no integer solutions
- Composite number of the form (4n+3) must have a prime divisor of the form (4n+3)
- Problems on divisors of a given number
- How many three-digit numbers are multiples of both 5 and 7?
- How many 3-digit numbers are not divisible by 2; not divisible by 3; not divisible by either 2 or 3
- How many integer numbers in the range 1-300 are divisible by at least one of the integers 4, 6 and 15 ?
- Find the remainder of division
- Why 3^n + 7^n - 2 is divisible by 8 for all positive integer n ?
- What is the last digit of the number a^n ?
- Find the last three digits of these numbers
- Find the last two digits of the number 3^123 + 7^123 + 9^123
- Find the last two digits of (1! + 2! + 3! + ... + 2024!)^2024
- Find n-th term of a sequence
- Solving Diophantine equations
- How many integers of the form n^2 + 18n + 13 are perfect squares
- Miscellaneous problems on divisibility numbers
- Find the sum of digits of integer numbers
- Two-digit numbers with digit "9"
- Find a triangle with integer side lengths and integer area
- Math Circle level problem on lockers and divisors of integer numbers
- Nice entertainment problems related to divisibility properties
- Solving problems on modular arithmetic
- Using the little Fermat's theorem to solve a problem on modular arithmetic
- OVERVIEW of miscellaneous solved problems on divisibility of integer numbers
This lesson has been accessed 634 times.
|