"Chuck Crayne" <ccrayne@[EMAIL PROTECTED]
> wrote in message
news:20080721131949.44aac8b5@[EMAIL PROTECTED]
> Do you understand it now?
Yes. (Finally!) Thanks... I had to work through a few results. My
brain
just kept screaming "not correct, string length exceeded". I couldn't
work
through it yesterday. I had to let it sit for a day.
> On Mon, 21 Jul 2008 04:18:17 -0400
> "Rod Pemberton" <do_not_have@[EMAIL PROTECTED]
> wrote:
> > But for length 4, some of the div indexes will exceed the
> > string length... (Um, maybe?...)
>
> Yes, for length 4, the maximum Pn will be 23, and so the initial
> divisor must be 6.
....
> After which the remainder will become the Pn value
> for a length 3 string, for which you already have the solution.
Sorry, it seems I missed the implications of that last line. The
remainder
wasn't being used as an index into the string... but a new Pn. All the
difference in the world... ;)
RP


|