Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

You are correct: the formula in the first link does not produce the series listed for it (I noticed that, too). At the time I wrote it off as something to do with the different OFFSET value (1,2 in the first link vs 0,1 in the second) and didn't pursue it further. I just investigated the meaning of OFFSET, and found that while it may account for the discrepancy in the number of terms at the start of the series (e.g., before '83' is reached), it does not account for the difference in values (1,2,6 vs 2,3,7). I included the first link because, as you noted, the description of the problem is much better than in the second.

There is additional discussion of this issue here, where the author of the reference in the first link (Michiel de Bondt) weighs in.

Good poll idea! ++

Update following tye's post:
6 bananas are required to go 3 miles

Eat a banana, carry one 0.5 miles, drop it, and return. Repeat. Total bananas: 4 0 1 2 3 |---.-:-|-------|-------| Bananas 2 Camel C Eat a banana, carry one 0.75 miles, drop it, and walk back to the 0.5 +mile mark Total bananas: 6 0 1 2 3 |---.-:-|-------|-------| Bananas 2 1 Camel C Eat a banana, carry one 0.5 miles and drop it at 1.0, and return to th +e 0.75 mile mark (with 0.25 bananas left in the stomach) 0 1 2 3 |---.-:-|-------|-------| Bananas 1 1 Camel C Pick up the banana, return to the 1 mile mark 0 1 2 3 |---.-:-|-------|-------| Bananas 2 Camel C Eat one banana, carry the other one to the 2 mile mark Eat the last banana, walk to the 3 mile mark, and hope the location of + the oasis on your map is correct
Update: tye beat me to the answer, of course. :-)


In reply to Re^3: 2, 2, 2, 3, 7, 22, 83, ... by bobf
in thread 2, 2, 2, 3, 7, 22, 83, ... by davido

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found