A nine digit number has the property where the first digit equals the number of zeros and ones used in the number, the second digit equals the number of ones and twos used in the number, the third digit equals the number of twos and threes used in the number, etc. through the ninth digit equals the number of eights and nines used in the number. What could the number be?
A ten digit number has a similar property to the nine digit number. The first digit equals the number of zeros and ones used in the number, the second digit equals the number of ones and twos used in the number, etc. through the ninth digit. And also, the tenth digit equals the number of zeros and nines used in the number. What could this number be?
(In reply to
re(3): Attn: Ken Haley by Ken Haley)
Needless to say, Option Strict On, with global variables, is dynamite as far as performance goes.
I just reran the program for the puzzle "There is something missing", with Option Strict On, and it runs in 2 seconds flat. Unbelievable.
Thanks again.
|
Posted by Penny
on 2005-09-25 02:17:36 |