Re: incrementing values in base 36

2002-10-11 Thread Sean McAfee
"Selector, Lev Y" <[EMAIL PROTECTED]> wrote: >Hello, >I have integer numbers represented in base 36 (each digit may have one of 36 >values: ('0'..'9','A'..'Z')). >For example: '5BFHK'. >I need to increment the number by 1 or by some step (for example, by 25). >Here is my first take on incrementing

incrementing values in base 36

2002-10-11 Thread Selector, Lev Y
Hello, I have integer numbers represented in base 36 (each digit may have one of 36 values: ('0'..'9','A'..'Z')). For example: '5BFHK'. I need to increment the number by 1 or by some step (for example, by 25). Here is my first take on incrementing by 1: # - # increment

Re: NPL Puzzler for 6 Oct

2002-10-11 Thread Bernie Cosell
> > What's odd is that my little Perl program found *TWO* solutions, but one > > is potentially ambiguous [in particular, given those rules, what should > > the value of "a*b*c" be?-- it doesn't say whether things should be done > > left-to-right or right-to-left, so perhaps that could be used

Re: NPL Puzzler for 6 Oct

2002-10-11 Thread Ronald J Kimball
On Fri, Oct 11, 2002 at 02:54:20PM -0400, Bernie Cosell wrote: > The NPL puzzle for 6 oct was an interesting little Perl exercise [I'm not > sure how to solve it analytically --- I played with it some to little > avail --- but it was certainly subject to brute force, and it turned out > to be a

NPL Puzzler for 6 Oct

2002-10-11 Thread Bernie Cosell
The NPL puzzle for 6 oct was an interesting little Perl exercise [I'm not sure how to solve it analytically --- I played with it some to little avail --- but it was certainly subject to brute force, and it turned out to be a cute little thing. Write out the digits from 1-9 in order. Then a