Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2013-05-22 00:10:20

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Chocolate!

Hi all,

Here is a YOB/YOP-type puzzle (some of you know what that means) that I'd forgotten about, and that stefy asked if I had any more of.

I found it some time ago on another forum (now closed) and solved it, but instead of posting my answer there I replied with a puzzle of my own, the solution to which proves I solved the Chocolate! puzzle. So for anyone to know that I'd solved it, they had to solve mine too (which no one ever did).

Chocolate!:

Jake and Marie are on their way to visit Grandma, who lives at the end of the valley. It's her birthday, and they have a basket with chocolate bars they bought to give her.

Between their house and Grandma's they have to cross 7 bridges, and (it goes without saying) there is a troll under every bridge! The trolls, quite rightly, insist they each be paid a 'troll toll' before Jake and Marie can cross their bridge, the toll being half the number of chocolate bars in the basket; but they're kind trolls, and each, in turn, returns a single chocolate bar to the basket.

How many chocolate bars do Jake and Marie leave home with to arrive at Grandma's with 2 chocolate bars?

My puzzle:

By ascribing a numeric value to the letters of "Jake", "Marie" and "troll" based on each letter's position in the alphabet (ie, a=1, b=2......z=26) and then adding them together, a value can be obtained for each name.

You will then find that the reverse of the difference between the numeric value of "troll" and the sum of the product of the digits of the numeric value of "Jake" and the product of the digits of the numeric value of "Marie", multiplied by the sum of the digits of the prime factors ("PF") of the afore-mentioned product sum, divided by the sum of the digits of the difference between the number comprising the PFs (arranged in ascending prime factor order) and its reverse, less the sum of twice one less than half the quotient and the two bars left over for Grandma, equals the total number of troll-toll chocolate bars.

So I guess the question is this:
Can you verify that I actually solved the Chocolate! puzzle?

EDIT 23/5/13: In 'My puzzle', replaced the two clauses after "and its reverse" (near the end) with "less the sum of twice one less than half the quotient and the two bars left over for Grandma"...to remove ambiguity.

Last edited by phrontister (2013-05-22 21:03:41)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#2 2013-05-22 00:31:47

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

Hi phro

Thanks for posting this! smile

For the first puzzle: When do the trolls return the chocolates?


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#3 2013-05-22 00:34:33

ShivamS
Member
Registered: 2011-02-07
Posts: 3,608

Re: Chocolate!

It says "each, in turn" thus I presume that they return one chocolate bar immediately after taking the toll.

Offline

#4 2013-05-22 00:38:38

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

But, that just means they return them in the order they take them, not when.

I am asking because, if they return a chocolate immediately, I get a weird

.


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#5 2013-05-22 00:43:39

ShivamS
Member
Registered: 2011-02-07
Posts: 3,608

Re: Chocolate!

Well yes, that seems too easy if they take one and return one.

Offline

#6 2013-05-22 00:45:35

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

Khm, you do mean take a half and return one, don't you? smile


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#7 2013-05-22 00:53:09

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

Shivamcoder3013 wrote:

It says "each, in turn" thus I presume that they return one chocolate bar immediately after taking the toll.

Correct. The first troll takes the entire toll required for their bridge, and then, because they're so kind, immediately returns one chocolate bar to the basket. Jake and Marie then move on to the next bridge, and the toll process is repeated...and so forth, until all bridges are crossed.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#8 2013-05-22 00:53:58

ShivamS
Member
Registered: 2011-02-07
Posts: 3,608

Re: Chocolate!

Yes, but assuming they start with 2, take one (half of two) and return one immediately. That probably is not the case.

Offline

#9 2013-05-22 01:02:22

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

It is good that the other puzzle is there as a check.


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#10 2013-05-22 01:10:54

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

Yes...for the same reason that I included the solution check in 'bobbym's YOB'. smile


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#11 2013-05-22 02:28:13

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

Hi phro

Last edited by anonimnystefy (2013-05-22 03:16:48)


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#12 2013-05-22 04:12:34

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

Hi stefy,

Spot on! up smile

I corrected an error in the second line of the second paragraph in my first post, and also improved the wording of the "reduced to..." part of the puzzle to "reduced to the cube root of the sum of the digits of that division".


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#13 2013-05-22 05:34:28

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

The "reduced to..." part is still a bit ambiguous. At first I thought that what I need is x-cbrt(x).


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#14 2013-05-22 10:18:04

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

I agree...which is why I amended the wording (particularly after seeing your first answer before your edit). It's always worried me a bit, but as I understood what I meant there I managed to convince myself that it was ok. I think I'll do something about that...it just needed someone like yourself to confirm my misgivings about it and to prompt me into action.

And maybe that's why my puzzle was never solved on that dead forum! wink


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#15 2013-05-22 10:23:21

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

Hi phro

Yeah, the wording needs a fix.

And, speaking of words, do you, maybe, remember those old girthbruins' threads about finding what's in common for a set of words?

Last edited by anonimnystefy (2013-05-22 10:34:05)


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#16 2013-05-22 10:38:35

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

Yes, I do. They were excellent puzzles and I quite enjoyed them.

There was one puzzle (I forget which one now) that I didn't manage to solve, which bothered me for ages and I've tried many times since the thread died to try and solve it. Maybe I'll look at it again, now that you've raised its spectre.

Am getting ready for work, and really must go now...

Last edited by phrontister (2013-05-22 10:39:28)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#17 2013-05-22 10:44:31

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

The problem with those puzzles is I have no idea where to even start. I have never solved one, and I don't know where to find simpler ones.

See you later! smile


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#18 2013-05-22 21:02:22

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

anonimnystefy wrote:

Yeah, the wording needs a fix.

Fixed. smile (see post #1)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#19 2013-05-23 00:13:50

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

But, the cube root version was fine. It just needed rewording.


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#20 2013-05-23 02:35:09

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

True, and I did a reword with that in it. But while I was at it I also thought up about 3 other alternatives for that ending (there are many, of course), none of which featured the cube root...and out of the lot (including the cube root version) the one I posted was my favourite.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#21 2013-05-23 02:41:57

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

I do not see "cube root" anywhere in the new puzzle...


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#22 2013-05-23 02:48:31

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

The reword with the cube root in it was only in my head, composed while I was at work. I didn't write it down. So was the final version that I liked best, which I thought of while driving and recorded into my mobile via its sound recorder in case I forgot it.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#23 2013-05-23 03:57:32

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

Using a phone while driving? shame


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

#24 2013-05-23 04:17:20

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 3,853

Re: Chocolate!

Well, it was a choice of either chancing to get an enormous fine or forgetting the fix...and I opted for the former, of course. Trying to write it down while driving would have been worse.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#25 2013-05-23 04:29:50

anonimnystefy
Real Member
From: The Foundation
Registered: 2011-05-23
Posts: 15,602

Re: Chocolate!

Now, that is a true puzzler!


“Here lies the reader who will never open this book. He is forever dead.

“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

Offline

Board footer

Powered by FluxBB