 |
|
|
 |
Ultra Member
|
|
Jun 14, 2007, 11:12 AM
|
|
Troll and little red riding hood
Here's a fun little problem if anyine would like to have a go. It's not too bad.
Maybe you've seen it before, if so, maybe those who haven't will find it fun.
"Little Red Riding Hood is walking to her grandmother's house. She crosses a
bridge and a troll tells her to pay 1/2 of all her apples and 1/2 of one
apple. At each bridge there is a troll asking for the same thing. There are
three bridges. When she gets to her grandmother's house, she has no apples
left. How many apples did she start with"
|
|
 |
Uber Member
|
|
Jun 14, 2007, 11:51 AM
|
|
7? Just a first guess.
|
|
 |
Ultra Member
|
|
Jun 14, 2007, 11:59 AM
|
|
I figured 5 actually
Edit, nope, it's 7 you were right
|
|
 |
Ultra Member
|
|
Jun 14, 2007, 12:05 PM
|
|
I realize this problem isn't that difficult. I just thought it was cute.
But, why doesn't someone post their solution instead of just the answer? Go ahead. Different methods is what's interesting.
|
|
 |
Full Member
|
|
Jun 14, 2007, 12:08 PM
|
|
I cheated with maxima so highlight the text below to see a cheater's answer :)
---start hidden---
at each bridge she will start with a apples and end with 0.5a-0.5 apples so the troll function is:
t(a)=0.5a-0.5=(a-1)/2
so if she starts with a_0 apples she ends with a_3=t(t(t(a_0)))
if you do all the math and set a_3=0 and solve for a_0 you'll find that
a_0=7
in maxima:
t(a):=(a-1)/2
y:t(t(t(a)))
solve(y=0,a)
---end hidden---
|
|
 |
Ultra Member
|
|
Jun 14, 2007, 12:25 PM
|
|
Lol
What's maxima? I assume a program that solves math functions?
|
|
 |
Ultra Member
|
|
Jun 14, 2007, 12:27 PM
|
|
I just assumed in order to end with zero he has to arrive at the last bridge with one apple (1/2 of all he has plus 1/2 is one apple)
Going backwards I then saw he has to arrive at the second bridge with 3, giving the troll 2 (1/2 of all he has plus a half is 2).
Same for the first, he has to leave with 3 so he has to arrive with 7, (half of all be has plus a half is 4)
|
|
 |
Full Member
|
|
Jun 14, 2007, 12:56 PM
|
|
 Originally Posted by Lowtax4eva
lol
What's maxima? I assume a program that solves math functions?
Maxima is an open source computer algebra system.
Maxima - A GPL CAS based on DOE-MACSYMA
|
|
Question Tools |
Search this Question |
|
|
Add your answer here.
Check out some similar questions!
A Troll Puppet Movie
[ 5 Answers ]
I remember watching this movie when I was young. It was about a bunch of trolls who were puppets and sang songs and kind of acted music videos for the songs like "Don't worry be happy." It's driving me crazy. I can't think of the title
Weird animated 80's/90's movie with an ugly troll?
[ 7 Answers ]
Ok so for some strange reason I have had this movie bugging the crap out of me because I cannot seem to think what it is! I guess it started after coming across that Disney flick The Black Cauldron, but I'm pretty sure I'm not getting this one mixed up with that movie.
This may sound sooo...
Rocket Robin Hood
[ 3 Answers ]
Has anyone ever found episodes of Rocket Robin Hood ?
It was a cartoon I used to watch it in the morning before school when I was little (yes, I am really dating myself now... ).
I'd like to try and find a few episodes... :)
Jenn Air Range Hood
[ 3 Answers ]
I bought a new Jenn-Air hood (JXT5830) to install over the range in my kitchen. I then connected the wires as per the instructions, but none of the front lights or functions worked. The company is the worst imaginable-- no help at all to installers, so I must rely on my friends here. I connected...
View more questions
Search
|