Jump to content
BrainDen.com - Brain Teasers
  • 0

Jelly beans join the clean plate club


bonanova
 Share

Question

On a table are three plates, containing a, b and c jelly beans, in some order, where a < b < c. At any time you may double the number of jelly beans on a plate, by transferring beans to it from a fuller (or equally populated) plate. After one such move, for example, the plates could have 2a, b-a,  and c beans. Using a series of these moves, Is it possible to remove all the jelly beans from one of the plates?

 

Edited by bonanova
Clarified the conditions for transferring beans
Link to comment
Share on other sites

21 answers to this question

Recommended Posts

  • 0
  On 1/22/2018 at 7:17 PM, bonanova said:

It must be symmetric about  the NW-SE diagonal, so your figure show all the cases you computed. Nice, btw.

Hint

  Reveal hidden contents

 

Expand  

Ah, this is probably what you have in mind.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1
  On 1/15/2018 at 2:34 AM, bonanova said:

On a table are three plates, containing a, b and c jelly beans, in some order, where a < b < c. At any time you may double the number of jelly beans on a plate, by transferring beans to it from a fuller plate. After one such move, for example, the plates could have 2a, b-a,  and c beans. Using a series of these moves, Is it possible to remove all the jelly beans from one of the plates?

 

Expand  
  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1

@Molly Mae maybe this'll help.

Q: How should you arrange all those plates of jelly beans?

A: Put them on a table.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 1/16/2018 at 2:56 AM, flamebirde said:
  Reveal hidden contents

 

Expand  

  Reveal hidden contents

Link to comment
Share on other sites

  • 0

Sorry guys, "fuller" should have read "at least as full." Examples always help, so here is an example.

 a   b   c
 7   9  12
  <-
14   2  12

  ----->
 2   2  24
  ->
 0   4  24

So { 7 9 12 } is a starting point where a plate can be emptied. Can any { a < b < c } lead to an empty plate?

A Yes answer needs proof; a No answer just needs a counter example.

Link to comment
Share on other sites

  • 0

Aw man, I was so confident I'd finally solved one of Bonanova's legendary puzzles.

A start on thinking:

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

I think I've gotten closer.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 1/18/2018 at 4:10 AM, flamebirde said:

I think I've gotten closer.

  Reveal hidden contents

 

Expand  

I can show you by counterexamples that they don't always land at the average (if, for example, their average is odd [say 4, 6], you'll never be able to double to the average).  That's why I considered evaluating the difference between two as being divisible by 4 (instead of 2).  Perhaps you'll succeed where I have failed.

Link to comment
Share on other sites

  • 0
  On 1/18/2018 at 4:23 AM, Molly Mae said:

I can show you by counterexamples that they don't always land at the average (if, for example, their average is odd [say 4, 6], you'll never be able to double to the average).  That's why I considered evaluating the difference between two as being divisible by 4 (instead of 2).  Perhaps you'll succeed where I have failed.

Expand  

But no matter what you'll always have at least one pair whose average is even. Try it: pick any three numbers such that the average of any two is odd. I'm fairly sure it's impossible, since between a+b, b+c, and a+c at least one is guaranteed to be even. Do you have another counterexample of two numbers whose average is even but can't be reached via doubling?

Edited by flamebirde
clarification.
Link to comment
Share on other sites

  • 0
  On 1/19/2018 at 2:15 AM, flamebirde said:

But no matter what you'll always have at least one pair whose average is even. Try it: pick any three numbers such that the average of any two is odd. I'm fairly sure it's impossible, since between a+b, b+c, and a+c at least one is guaranteed to be even. Do you have another counterexample of two numbers whose average is even but can't be reached via doubling?

Expand  

Especially when you consider as well that at any point you've got an extra plate either to transfer to or to transfer from (although that does complicate things a bit, it also ensures that pairs such as {4,8} are solvable).

  On 1/19/2018 at 2:16 AM, CaptainEd said:

Here’s a tiny observation about what the next to last step looks like.

 

  Reveal hidden contents

 

Expand  
  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 1/19/2018 at 2:15 AM, flamebirde said:

Do you have another counterexample of two numbers whose average is even but can't be reached via doubling?

Expand  

I sure don't!  But I also couldn't find an easy way to express the relationship between (1) the average of two numbers being even and (2) the third plate.  That's when I disappeared down the rabbit hole of the difference between a and b being divisible by 4.

I think we're in the same boat, though.  We just can't come up with a way to express what's in our heads.

Whenever I'm in a situation like this (which happens pretty often), I sit back and watch the rest of you all solve where I have struggled.

Godspeed, my friends!  Should anything pop into my head, I will be certain to post it.

EDIT: What if we rename the plates to a, a+x, and a+y (or a+x+y)?

Edited by Molly Mae
Link to comment
Share on other sites

  • 0
  On 1/19/2018 at 4:10 AM, Molly Mae said:

I sure don't! 

Expand  

I lied.  I can show you two numbers whose average is even that cannot be reduced to their average (and thus not reduced to 0) without a third plate.  The example of {4,8}.

These two alone cannot be reduced to 0.  As soon as you add in a third plate, regardless of the number on that plate, you can reduce one of them to 0.  That is the cornerstone of my reasoning, but I'm not certain I can express it.

Link to comment
Share on other sites

  • 0

I wrote a perl program to do what I said earlier...

  Reveal hidden contents
Edited by plasmid
fixed the display of the perl code
Link to comment
Share on other sites

  • 0

@plasmid Does the program imply a proof that it can always be done? Or is it a statement that no counterexample has yet been found?

A proof could be a repeated procedure which after each application reduces the smallest number of beans on a plate. Does your algorithm always reduce the number on place C?

Link to comment
Share on other sites

  • 0
  On 1/22/2018 at 2:09 PM, bonanova said:

@plasmid Does the program imply a proof that it can always be done? Or is it a statement that no counterexample has yet been found?

A proof could be a repeated procedure which after each application reduces the smallest number of beans on a plate. Does your algorithm always reduce the number on place C?

Expand  

The program isn't a proof, it's just an application of a greedy algorithm that starts from states with an empty plate and works backwards to see whether every state could eventually reach one with an empty plate. It covered every possible state for up to 500 jelly beans, but it doesn't prove that a plate can always be cleared if you have something like 8x1012 jelly beans.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

It must be symmetric about  the NW-SE diagonal, so your figure show all the cases you computed. Nice, btw.

Hint

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 1/25/2018 at 5:35 AM, plasmid said:

Ah, this is probably what you have in mind.

  Reveal hidden contents

 

Expand  

That's it. Binary representation of B/A indicates moves to make B smaller than A was. Rinse and repeat. Nice.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...