Re: virus: hey Eric

Eric Boyd (6ceb3@qlink.queensu.ca)
Tue, 30 Mar 1999 15:04:03 -0500

Hi,

Tim Rhodes <proftim@speakeasy.org> writes:

<<
Eric Boyd wrote:

>consider a 3 digit number
>
>abc
>
>it "reverse" is
>
>cba
>
>the difference between them is
>
>absolute value (cba-abc)

Should that be |(c*100+b*10+a)-(a*100+b*10+c)| ?
>>

If you want to define it that way. I admit I was lax in my notation, but at least I was consistent. I was letting the letter stand for the digits, and not the actual value those digits yield when combined into a number.

For those who read my post in detail, there is an error having to do with a "carry the one"; the second digit is 9, not zero as I wrote. Note also that there are many cases (when a=c) where the final result is simply zero.

ERiC