laziness, impatience, and hubris PerlMonks

### 2, 2, 2, 3, 7, 22, 83, ...

by davido (Archbishop)
 on Feb 06, 2006 at 06:56 UTC ( #528165=poll: print w/replies, xml ) Need Help??

vote on 2, 2, 2, 3, 7, 22, 83, ...

 42 59/42% 128 9/6% 250 12/9% 333 7/5% 326 35/25% 360 4/3% 667 5/4% 1291 8/6% 139 total votes
Replies are listed 'Best First'.
Re: 2, 2, 2, 3, 7, 22, 83, ...
by bobf (Monsignor) on Feb 06, 2006 at 07:55 UTC

How appropriate. ;-)

Hint and spoiler:

Wow, now that you spoiled me, (and i guessed wrong of course) i admit i never saw this coming!
Thanks for the enlightment, and making me feel a complete idiot :)

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

The second link is better in one respect anyway; it notes that the equation provides an approximation.

It takes 0 (not 2) bananas to go 0 miles into the desert. It takes 1 banana (not 2) to go 1 mile into the desert. It takes 2 bananas to go 2 miles into the desert. I suspect it takes 6 (not 3 nor 7) bananas to go 3 miles into the desert, but don't ask me how to accomplish it...

Which means we may not know exactly how many bananas it takes to reach the next milestone. It is approximately 326 but, in my 20-second perusal of the links provided, I don't see an exact answer.

Update: You can get 3 miles on 6 bananas:

```At
0: eat 1, carry 1 (2 used)
1/2: drop 1 (1/2 in stomach, 1@1/2)
0: eat 1, carry 1 (4 used)
1/2: drop 1 (1/2 in stomach, 2@1/2)
0: eat 1, carry 1 (6 used)
3/4: drop 1 (1/4 in stomach, 2@1/2, 1@3/4)
1/2: eat 1, carry 1 (0@1/2, 1@3/4)
1: drop 1 (1/2 in stomach, 1@3/4, 1@1)
3/4: carry 1 (1/4 in stomach, 0@3/4, 1@1)
1: eat 1 (0@1, still carrying 1)
2: eat 1 (carrying 0)
3: hope the report of "bananas 3 miles in" are true

Update2: And you can get 4 miles w/ 22 bananas:

```At
0: eat 1, carry 1 (2 used)
1/2: drop 1 (1/2 in stomach, 1@1/2)
0: repeat above 9 more times (20 used, 10@1/2)
0: eat 1, carry 1 (22 used)
3/4: drop 1 (1/4 in stomach, 10@1/2, 1@3/4)
1/2: eat 1, carry 1 (8@1/2, 1@3/4)
1: drop 1 (1/2 in stomach, 8@1/2, 1@3/4, 1@1)
1/2: repeat above 3 times (2@1/2, 1@3/4, 4@1)
1/2: eat 1, carry 1 (0@1/2, 1@3/4, 4@1)
1: drop 1 (1/2 in stomach, 1@3/4, 5@1)
3/4: carry 1 (1/4 in stomach, 0@3/4, 5@1)
1: drop 1 (stomach empty, 6@1)
1: move 3 miles futher in using previous answer

- tye

Re: 2, 2, 2, 3, 7, 22, 83, ...
by tbone1 (Monsignor) on Feb 06, 2006 at 12:51 UTC
This use of Western-oriented numbers is clearly introducing a bias and hurting women and minorities! It shows a clear exclusionism on the behalf of those who can count past ten without removing shoes and/or trousers, except for poor white trash who deserve what they get, and as such I demand a tax on NASCAR to pay for massive government programs that pretend to help the allegedly repressed and in reality give unfirable jobs to the unemployable idiot liberal arts children of the middle and upper classes.

Sincerely,
Moonbeam Smithers-Jones
Chair, Harvard Departement of Idiocy Studies

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

But wait...these numbers are Eastern Hindu-Arabic numerals, obviously showing an anti-Western, anti-Christian bias in the questioner.

Obviously the questioner is a member of the anti-American East Coast, Liberal elite.

emc

" When in doubt, use brute force." — Ken Thompson
And, just as obviously, I've got to quit sniffing this Ajax. Unfortunately, it's the only way I can get through most days' meetings.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

Re: 2, 2, 2, 3, 7, 22, 83, ...
by GhodMode (Pilgrim) on Feb 06, 2006 at 15:55 UTC

Didn't you know?!?

The answer was never in doubt ...

Deep Thought: Okay. The answer to the ultimate question of life, the universe, and everything is...
... wild cheers from audience, then silence ...
Deep Thought: 42.

```--
-- GhodMode
```
The object in life is not to be on the side of the majority, but to escape finding oneself in the ranks of the insane.
- Marcus Aurelius
Of course, this is the real reason, why 42 :0)
The next theme of the poll could be the ultimate question...
Re: 2, 2, 2, 3, 7, 22, 83, ...
by Happy-the-monk (Abbot) on Feb 06, 2006 at 08:43 UTC
• 250
• 333
• 326
• 360

'tis a bit confuddling that 333 preceeds 326 here.

Cheers, Sören

Re: 2, 2, 2, 3, 7, 22, 83, ...
by Anonymous Monk on Feb 06, 2006 at 20:37 UTC
All of the above answers are correct; it's trivial to construct a simple eigth order function which will map any solution to every single value listed.

That's why I don't like these sorts of question. They're really just guessing games, where you try to guess what the real question that person framing the problem was thinking of, but failed to adequately communicate. They're problems of culture, masquerading as problems of mathematics.

All of the above answers are correct; it's trivial to construct a simple eigth order function which will map any solution to every single value listed.
Please show me how to do this? I haven't the slightest clue how to go about it.
The way that I seem to remember learning it way back in college looked like this

That's wy this is a poll. If there was a single real answer, this was a test, not a poll.

it's trivial to construct a simple eigth order function which will map any solution to every single value listed

In fact, I've even written a japh based on that idea: Japh algebra. (A bit related is Fast Japh.)

Re: 2, 2, 2, 3, 7, 22, 83, ...
by talexb (Canon) on Feb 07, 2006 at 15:56 UTC

326: Closest to (what I believe to be) the correct answer of 327.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Update: Sorry, this is wrong. I wrote a script to show how my answer was right, and it failed. Go about your business, please, there's nothing (useful) to see here.

Re: 2, 2, 2, 3, 7, 22, 83, ...
by gnujsa (Acolyte) on Feb 08, 2006 at 02:06 UTC
Re: 2, 2, 2, 3, 7, 22, 83, ...
by gregor42 (Parson) on Feb 07, 2006 at 14:18 UTC
6*9==42

Wait! This isn't a Parachute, this is a Backpack!
Re: 2, 2, 2, 3, 7, 22, 83, ...
by turo (Friar) on Feb 08, 2006 at 11:06 UTC

I think camels don't eat bananas!! ...

ufff ... :'( i can't see the spoiler ...
i want to work, but i only can think in imaginary camels eating bananas!!!

... ahhhh

perl -Te 'print map { chr((ord)-((10,20,2,7)[\$i++])) } split //,"turo"'

If they had said 'dates' instead of 'bananas' there would be numerous adult-content filters that would find that very offensive.

You could, of course, s/banana/date/ig.

emc

" When in doubt, use brute force." — Ken Thompson

aaaaaahhhh!!
I was very innocent (until now)

dudes, you are going to quit me XP, for this ...
but here we go:

```sub create_reader_correct_context {
if ( defined \$filter ) {
s/bananas/dates/ig
} else {
s/camel/jenna jameson/gi
}
}
}

sorry, i couldn't resist :-P

perl -Te 'print map { chr((ord)-((10,20,2,7)[\$i++])) } split //,"turo"'

View List Of Past Polls

Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-08-20 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
Who is your favorite scientist and why?

Results (313 votes). Check out past polls.

Notices?