Re: Learning recursion with hailstone seqence
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: 17 Nov 2006 02:14:07 -0800
On Nov 17, 9:13 am, "Maarten Wiltink" <maar...@xxxxxxxxxxxxxxxxxx>
wrote:
<snip>
As an aside, I can confidently predict that for 2^1000, the return value
of the above function is 2^999 after recursing exactly 999 times.
I'm no mathematician (although I'm happy with numbers), but after doing
a quick check of values up to 50 I could also predict that. But is
there any basis to my feeling that there ought to be some additional
predictable iteration counts, or some other connection between the
number & the count. For example 12 *13, 14 & 15, 20 &21, 26 & 27, 34 &
35, 36 & 37, 45 & 46 are consecutive numbers having the same iteration
count.
Alan Lloyd
.
- Follow-Ups:
- Re: Learning recursion with hailstone seqence
- From: Maarten Wiltink
- Re: Learning recursion with hailstone seqence
- References:
- Learning recursion with hailstone seqence
- From: DAVID B MORGAN
- Re: Learning recursion with hailstone seqence
- From: Maarten Wiltink
- Learning recursion with hailstone seqence
- Prev by Date: Re: Learning recursion with hailstone seqence
- Next by Date: Re: Learning recursion with hailstone seqence
- Previous by thread: Re: Learning recursion with hailstone seqence
- Next by thread: Re: Learning recursion with hailstone seqence
- Index(es):
Relevant Pages
|