View Single Post
  #375  
Old February 1st, 2005, 07:26 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: The Race to 1k Posts thread.. BYOP!

Quote:
David E. Gervais said:
I found this Eerie Psychic Thingy It's kind of neat. Try it you'll see what I mean.

Cheers!
It's a math trick; every multiple of 9 (except 0, but it specifies a two digit number, so that won't happen, will it?) is the same randomly assigned symbol. It has you take a number in range, and subtract the sum of it's digits from it - the result? A multiple of 9 (unless you pick something under 10, anyway; and even then, 0 is technically a multiple of 9 - but it's not one the program flags - it would be too obvious). Consider: 99: 9+9 = 18; 99-18 = 81 = 9x9. 98: 9+8 = 17; 98-17 = 81 = 9x9. Dropping the original number by 1 will result in the same 81 until you drop below 90 - at which point, it goes to the next multiple of 9 down - 89: 8+9 = 17; 89 - 17 = 72 = 9x8. The pattern continues; from 79 to 70 you get 63 (9x7); from 69 to 60 you get 54 (9x6); from 59 to 50 you get 45 (9x5), et cetera, et cetera.
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote