• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 02:37
CET 08:37
KST 16:37
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
BGE Stara Zagora 2026 announced9[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2
StarCraft 2
General
BGE Stara Zagora 2026 announced SC: Evo Complete - Ranked Ladder OPEN ALPHA When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge
Tourneys
RSL Revival: Season 3 Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
Which season is the best in ASL? A cwal.gg Extension - Easily keep track of anyone BW General Discussion soO on: FanTaSy's Potential Return to StarCraft BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET [BSL21] RO16 Group C - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Nintendo Switch Thread The Perfect Game Stormgate/Frost Giant Megathread Beyond All Reason Should offensive tower rushing be viable in RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Artificial Intelligence Thread YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1480 users

[Recreational Math] round 1

Forum Index > General Forum
Post a Reply
1 2 Next All
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2008-06-23 22:46:29
June 23 2008 11:30 GMT
#1
So i think to spice up the stale(brain intensive wise) general forum w/ some recreational math.
I'll post new rounds once in awhile, but only when the answers are all clear and up.

Sometimes I would know the answer and sit out, other time I would not know the answer and I'll jump in and participate too :D

Today as first day, I know the answer, so I won't participate yet.

Enuf fluff, let's get to business:

This problem is simple algebra, and it is as follows:

How many coconuts?

[image loading]


Five men and a monkey were stranded on strangee island, where common sense may be false while math/logic is always true.
For food, they gather up a bunch of coconuts, then they all went to sleep.
For simplicity, let's call these five men A B C D E, perspectively.
In the middle of the night...
A wakes up, and he thinks he ought to divide up the coconuts. He looks at the pile of coconuts and he realizes that if he remove one coconut, the pile can be evenly divided into 5 equal parts.
So A takes a coconut, and gave it to the monkey. He then divides the rest of the coconut into equal 5 parts, and keeps one part for himself, and leaves the rest of the coconut out. He goes back to sleep.
B wakes up, and he thinks he ought to divide up the coconuts. He looks at the pile left out in the open, and he realizes that if he remove one coconut, the pile can be evenly divided into 5 equal parts.
So B took a coconut and gave it to the monkey. He then divides the rest of the coconut into equal 5 parts, and keeps one part for himself. He leaves the rest out and he goes back to sleep.
C, D, E each wakes up, divides, and goes back to sleep consecutively afterwards. Each of them finds that if you remove one coconut, the rest can be divided into 5 equal parts. So each of them does the same procedure as A and B.
Day break...
Monkey is happily dancing with his 5 coconuts, unknowing how they got there.
All men woke up, and saw still some coconuts left out.
Each man compares his own coconuts with each other, and they find that they have equal amount of coconuts for himself.

How many coconuts are there to begin with so this could happen?

+ Show Spoiler [rewording the problem, no spoiler here] +

So to reword the problem, it is like this:
in the beginning one pile of coconuts
each of the five men does this procedure on the one pile consecutively:
takes one from the pile and give it to monkey, divides rest into 5 equal parts, keep one part for himself, leave the rest and go to sleep.
As a result:
there are still some left in the one pile
the monkey ends up with 5 coconuts
the men all have equal number of coconuts


Good Luck!! I'll post hints and answers if nobody got them, in the mean time discuss and tackle it! Communicate ideas and let's work that brain muscle. try to tag spoilers if you feel your answer is right :p
i'll be sleepa now, checking back tomorrow, gl!

+ Show Spoiler [mysolution] +

We know all the men had equal coconuts, so let X be that number
We have five men, so then all the men have 5X coconuts total
Monkey has 5
There are some remaining, call that R
So total amount will be 5X + R + 5
Now, some funny property of this thing... the number, when subtracted by 1, can be divided by 5 evenly, and not just evenly, but equal to X(since all men ends up with equal number of coconuts). So:
5X + R + 5 - 1 = 5X
Now we cancle the 5X on each side and have
R = -4
After the first guy took his share of coconuts, and gave one to the monkey, the total pile is
4X + R + 4
The second guy realizes this also, when subtracted by 1, can divide by 5 evenly, and not only evenly, but equal to X as well. So:
4X + R + 4 = 5X + 1
R + 3 = X (since R = -4)
X = -1

And we have the total number of coconuts,
5X + R + 5 = 5(-1) + (-4) + 5 = -4

Now to see why it works, it's quite interesting:
The pile is -4, first man wakes up, he toss a positive coconut to the monkey, so the pile is not -5. The man divides the pile into 5 parts, so each part is -1. Man then takes a pile, so man gets -1, and the total pile remains -4, as if nothing ever happened.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
DanceCommander
Profile Blog Joined May 2008
United States1808 Posts
June 23 2008 11:34 GMT
#2
Recreational math, huh? Also synonymous with cruel and unusual punishment
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2008-06-23 12:01:56
June 23 2008 11:35 GMT
#3
On June 23 2008 20:34 DanceCommander wrote:
Recreational math, huh? Also synonymous with cruel and unusual punishment

Then sit out my friend, it is not for the faint minded.
edit: English is not first language here
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
Ack1027
Profile Blog Joined January 2004
United States7873 Posts
June 23 2008 11:53 GMT
#4
On June 23 2008 20:35 evanthebouncy! wrote:
Show nested quote +
On June 23 2008 20:34 DanceCommander wrote:
Recreational math, huh? Also synonymous with cruel and unusual punishment

Then sit out my friend, it is not for the feint minded.


Brb making a [recreational english grammar] thread.
First challenge.
HOMONYMS
Faint vs Feint.
Beamo
Profile Joined March 2003
France1279 Posts
Last Edited: 2008-06-23 12:52:16
June 23 2008 12:50 GMT
#5
+ Show Spoiler +

At first I thought the phrasing was wrong and that it was impossible for the men to all have the same amount of coconuts at the end...
Then I did the math (trying to prove the phrasing was wrong) :
That would mean that (x-1)/5 = (4x-9)/25 = (16x-61)/125 etc...
Which works for x = -4

<<
on a strange island, where common sense may be false while math/logic is always true.
>>

So there are -4 coconuts in the stack. a men comes up gives one to the monkey which makes -5 coconuts. He takes on fifth and leaves the rest -> -4 coconuts left.
Second man does the same -> same result etc...

Am I right ?


ydg
Profile Blog Joined March 2008
United States690 Posts
Last Edited: 2008-06-23 12:56:58
June 23 2008 12:56 GMT
#6
+ Show Spoiler +
How can E have the same amount as A if the pile is always reduced before it gets to E? If the number is always divided by 5, E can't have the same amount as A.

haha just saw Beamo's. Clever.
The only courage that matters is the kind that gets you from one moment to the next.
Cobalt
Profile Joined April 2008
United States441 Posts
June 23 2008 13:05 GMT
#7
+ Show Spoiler +
Not to take away from the problem, because the answer appears to be quite clever, but...

"Common sense may be false while math/logic is always true."

Logic dictates that in a real-life scenario like this, you cannot have a negative number of anything tangible, like coconuts are. It might be better to reword it as something like "There is an island. On it, typical math is always true, but other aspects of reality might not be that way..." Now I'm sure someone could find fault with this, too, but I just came up with it in 10 seconds. I'm sure there's a much better way to phrase the statement.

But anyway, good job on the question. Just be careful if someone comes up and says "Alright, logic is true, so the people have to have -some- real coconuts."
aseq
Profile Joined January 2003
Netherlands3991 Posts
June 23 2008 13:22 GMT
#8
Seems impossible that they each take approx 1/5 off the entire stack, yet end up with the same amount of coconuts in the end...

var x = amount of coconuts left in the end;
for (i=0;i<5;++i)
x *= 1.25 + 1;
totalstack = x;

You're only using ints, so amount left in the end must be divisible by 4.
Doing x * 1.25 + 1 must yield a new number again divisible by 4, and this must be repeatable 5 times. Tryout:
4 -> 6 X
12 -> 16 -> 21 X
28 -> 36 -> 46 X
60 -> 76 -> 96 -> 121 X

Can't be arsed to go on, it'll be a big number. But still, not all of the guys will have the same number of coconuts, i don't see how that's possible? Or did you leave out the ninja in the story?
Guess i'm not smart enough to see through this. But if each guy eats half the pie that the last one left behind, no-one will eat the same amount of pie, right? Enlighten me, geniuses of TL!

aseq
Profile Joined January 2003
Netherlands3991 Posts
June 23 2008 13:31 GMT
#9
Ok lolz, if that is the correct answer, hats off to you. Would have never occurred to me...
Plexa
Profile Blog Joined October 2005
Aotearoa39261 Posts
June 23 2008 14:01 GMT
#10
On June 23 2008 21:50 Beamo wrote:
+ Show Spoiler +

At first I thought the phrasing was wrong and that it was impossible for the men to all have the same amount of coconuts at the end...
Then I did the math (trying to prove the phrasing was wrong) :
That would mean that (x-1)/5 = (4x-9)/25 = (16x-61)/125 etc...
Which works for x = -4

<<
on a strange island, where common sense may be false while math/logic is always true.
>>

So there are -4 coconuts in the stack. a men comes up gives one to the monkey which makes -5 coconuts. He takes on fifth and leaves the rest -> -4 coconuts left.
Second man does the same -> same result etc...

Am I right ?


Same method, same result
Administrator~ Spirit will set you free ~
ForAdun
Profile Joined August 2007
Germany986 Posts
June 23 2008 14:16 GMT
#11
I don't get why this is fascinating to some people. I'll close the topic in a few seconds and you rather crack your brain for a couple of hours/minutes with no use at all in your whole life, what the?
MoltkeWarding
Profile Joined November 2003
5195 Posts
June 23 2008 14:41 GMT
#12
As has already been posted, must be -4, as the human gain must in each partition be equal to the the one coconut given to the monkey.
Maenander
Profile Joined November 2002
Germany4926 Posts
Last Edited: 2008-06-23 15:13:37
June 23 2008 15:12 GMT
#13
On June 23 2008 23:16 ForAdun wrote:
I don't get why this is fascinating to some people. I'll close the topic in a few seconds and you rather crack your brain for a couple of hours/minutes with no use at all in your whole life, what the?

A few minutes of brain exercise can´t hurt, you know. My maths skills did decline a lot in recent years due to a lack of exercise. But I admit solving this riddle was rather boring.
Tacticas
Profile Joined July 2007
Israel74 Posts
Last Edited: 2008-06-23 15:26:10
June 23 2008 15:14 GMT
#14
hahaha, i got to the answer -4 but thought i was just wrong >_<
ForAdun
Profile Joined August 2007
Germany986 Posts
June 23 2008 15:31 GMT
#15
Well I don't see how it is brain exercise if you find the answer being -4 because -4 doesn't exist which takes about 1 brain cell to realize so when you realize that the answer is impossible after 1 minute of reading instead of saying the answer must be -4 you're way smarter and therefore you should have more brain capacity than anyone who gives the "correct" answer. Just my 50 cent.
Math is........ well, just not good for your health.
anotak
Profile Blog Joined March 2008
United States1537 Posts
June 23 2008 15:42 GMT
#16
i wonder if i'm the only one that read the title as "recreational meth"
XCetron
Profile Joined November 2006
5226 Posts
June 23 2008 15:50 GMT
#17
On June 24 2008 00:42 anotak wrote:
i wonder if i'm the only one that read the title as "recreational meth"


make a new thread about it.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
June 23 2008 22:36 GMT
#18
Well done folks! We have a rather small audience pool at the moment but I'll keep going with more later on today/this week when I find more funny ones.
I'll post my solution in the op now.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
DanceCommander
Profile Blog Joined May 2008
United States1808 Posts
June 23 2008 22:44 GMT
#19
On June 23 2008 20:53 Ack1027 wrote:
Show nested quote +
On June 23 2008 20:35 evanthebouncy! wrote:
On June 23 2008 20:34 DanceCommander wrote:
Recreational math, huh? Also synonymous with cruel and unusual punishment

Then sit out my friend, it is not for the feint minded.


Brb making a [recreational english grammar] thread.
First challenge.
HOMONYMS
Faint vs Feint.


ROFL
ieatkids5
Profile Blog Joined September 2004
United States4628 Posts
June 24 2008 01:02 GMT
#20
On June 23 2008 20:30 evanthebouncy! wrote:
+ Show Spoiler [mysolution] +

We know all the men had equal coconuts, so let X be that number
We have five men, so then all the men have 5X coconuts total
Monkey has 5
There are some remaining, call that R
So total amount will be 5X + R + 5
Now, some funny property of this thing... the number, when subtracted by 1, can be divided by 5 evenly, and not just evenly, but equal to X(since all men ends up with equal number of coconuts). So:
5X + R + 5 - 1 = 5X
Now we cancle the 5X on each side and have
R = -4
After the first guy took his share of coconuts, and gave one to the monkey, the total pile is
4X + R + 4
The second guy realizes this also, when subtracted by 1, can divide by 5 evenly, and not only evenly, but equal to X as well. So:
4X + R + 4 = 5X + 1
R + 3 = X (since R = -4)
X = -1

And we have the total number of coconuts,
5X + R + 5 = 5(-1) + (-4) + 5 = -4

Now to see why it works, it's quite interesting:
The pile is -4, first man wakes up, he toss a positive coconut to the monkey, so the pile is not -5. The man divides the pile into 5 parts, so each part is -1. Man then takes a pile, so man gets -1, and the total pile remains -4, as if nothing ever happened.

Do you mean 'now'?
cuz it makes a difference
actually, not that big of a difference cuz i could figure out what you meant

love this thread, interesting stuff, and im actually gonna try to do the next one
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Replay Cast
23:00
2025 KFC Monthly #3 - Day 2
Liquipedia
LAN Event
18:00
LANified! 37: Groundswell
Discussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 166
SortOf 121
StarCraft: Brood War
PianO 3172
Leta 256
EffOrt 242
Larva 206
Shine 92
Zeus 55
Bale 37
Backho 26
ivOry 12
ajuk12(nOOB) 1
Dota 2
monkeys_forever552
PGG 369
NeuroSwarm98
League of Legends
JimRising 689
Super Smash Bros
amsayoshi86
Heroes of the Storm
Khaldor65
Other Games
summit1g12279
WinterStarcraft461
C9.Mang0261
Mew2King105
Organizations
Other Games
gamesdonequick676
Dota 2
PGL Dota 2 - Main Stream310
StarCraft: Brood War
UltimateBattle 28
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH262
• practicex 30
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1827
• Lourlo1073
• HappyZerGling188
Upcoming Events
Replay Cast
1h 23m
WardiTV Korean Royale
4h 23m
ByuN vs Cure
TBD vs NightMare
TBD vs Classic
TBD vs Solar
Zoun vs Creator
OSC
9h 23m
Sparkling Tuna Cup
1d 2h
WardiTV Korean Royale
1d 4h
Replay Cast
1d 16h
Wardi Open
2 days
Monday Night Weeklies
2 days
StarCraft2.fi
2 days
Replay Cast
2 days
[ Show More ]
Wardi Open
3 days
StarCraft2.fi
3 days
PiGosaur Monday
3 days
Wardi Open
4 days
StarCraft2.fi
4 days
Replay Cast
4 days
The PondCast
5 days
Replay Cast
5 days
Korean StarCraft League
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.