googleearth wrote:[spoiler]It works if you buy 70 blue, 29 yellow and 1 red ones.
That's how I did it:
[spoiler]Two conditions were required in the riddle, so I put the count of each color in a variable (red -> r; yellow -> y; blue -> b) in order to formulate equations:
1) The sum of all squeegies must be 100 -> r+y+b=100; -> r=100-y-b
2) The cost must also be exactly 100 -> 6r+3y+0.1b=100
I solved the first equation for r, so that I can now plug it in in the second one:
Solving that for y gives me:
After exchanging the letter b with x I plotted that function and had the software create a lookup table, so I could look for natural numbers.
When I determined the third number (how many red squeegies are required in that case) I eliminated every solution that contained a negative number (since while you can buy 5 squeegies, you can't buy -5 ones). If I didn't miss one, the solution I stated above is the only one.[/spoiler]
Edit2: If someone were to tell me my answer is correect, don't wait for me to post the next riddle, 'cause I got none.
[spoiler]Because the rectangle we are finding is created from 60 squares, hence its area is 60.
Set the square's edges length = x
Hence the rectangle's edge length = Ax and Bx
Since the squares can't be divided into pieces, A and B must be natural numbers
The rectangle's circumference: 2(A + B)
The rectangle's area: A*B = 60 --> A = 60/B
(I removed the "x" part since it only serves as the length's unit)
Since A and B are natural numbers, B must be either 1, 2, 3, 4, 5 or 6; A will be 60, 30, 20, 15, 12 and 10 respectively
Since we want the minimum rectangle's circumference, B must be 6 --> A is 10
The minimum circumference is 2(6 + 10) = 32 (unit is x)[/spoiler]
S.H. wrote:[spoiler]There are 2 answers... 9 2 2 and 6 6 1...But since there is an oldest one...The answer is 9 2 2....[/spoiler]
SilverBullet wrote:I'm leaving the answer as spoiler, just in case I'm away for a long time (don't look before posting yours ):
[spoiler]2, 2, 9[/spoiler]
Users browsing this forum: No registered users and 8 guests