TWCP OTD (The Who Cares Puzzle Of The Day) - 14th of February, 2017
-
EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
7, assuming eggs are not divisible. If they are, 0.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
7, assuming eggs are not divisible. If they are, 0.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Actually eggs are divisible very easily... but I don't think you can give them away after that...
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
How many people are in the families?
Slogans aren't solutions.
-
How many people are in the families?
Slogans aren't solutions.
An average of six each... Why?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
7, assuming eggs are not divisible. If they are, 0.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
I would say the same, it's only this sentence that is vague enough to lead us into a trap[^]:
Quote:
After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg.
The 'otherwise' is not as clear as we are led to believe.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
"I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns. -
I would say the same, it's only this sentence that is vague enough to lead us into a trap[^]:
Quote:
After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg.
The 'otherwise' is not as clear as we are led to believe.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
"I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.CDP1802 wrote:
The 'otherwise' is not as clear as we are led to believe.
I hope so :-)
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
African or European chickens?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
-
EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
If the number of recipients is greater than 1, then 301. 301 mod 2 = 1 301 mod 3 = 1 301 mod 4 = 1 301 mod 5 = 1 301 mod 6 = 1 301 mod 7 = 1
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
-
If the number of recipients is greater than 1, then 301. 301 mod 2 = 1 301 mod 3 = 1 301 mod 4 = 1 301 mod 5 = 1 301 mod 6 = 1 301 mod 7 = 1
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
Daniel Pfeffer wrote:
301 mod 7 = 0 1
FTFY... Nothing like Copy-Paste :-)
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
If the number of recipients is greater than 1, then 301. 301 mod 2 = 1 301 mod 3 = 1 301 mod 4 = 1 301 mod 5 = 1 301 mod 6 = 1 301 mod 7 = 1
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
:thumbsup: Perfect except
Quote:
301 mod 7 = 1
-
Daniel Pfeffer wrote:
301 mod 7 = 0 1
FTFY... Nothing like Copy-Paste :-)
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
:sigh: :-O
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
-
:thumbsup: Perfect except
Quote:
301 mod 7 = 1
Copy-paste strikes again... :sigh: :-O
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
-
African or European chickens?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
No, he said "eggs", not "coconuts". :laugh:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
:confused: Do grilled chickens lay eggs? Perhaps they lay fried eggs... :)
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
-
Daniel Pfeffer wrote:
301 mod 7 = 0 1
FTFY... Nothing like Copy-Paste :-)
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
EGG-PLAN My neighbour has a few chickens, gone crazy and laying down eggs like fire in the last few days. He wants to give away all the eggs, but he wants to give everyone the same amount - exactly... After some thinking we came up that he has to divide the eggs between seven families, otherwise he will left with one extra egg. How many eggs he giving away - at least?
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
The result is the smallest multiple of 7 which satisfies the rule : This result minus one is also a multiple of 2,3,4,5 and 6. So a=(2*3*5*k)+1=n*7, with n and k integers >= 1, and k a product of 2, 3, and/or 5 only. In increasing possible values of k: k=2 : a=61, which is prime. k=2x2 : a=121 = 11x11. k=5 : a=151 which is prime. k=2x3 : a=181 which is prime. k=2x5 : a=301 = 7x43, n=43, and we have a winner.