All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Self-Referential Numbers (Posted on 2005-09-23)
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?

 See The Solution Submitted by Brian Smith Rating: 3.4000 (5 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 re(2): Attn: Ken Haley | Comment 11 of 17 |
(In reply to re: Attn: Ken Haley by Penny)

Hmmm...

As an inducement to try the recursive approach, my programs take 4 seconds each for the part 1 and part 2 pieces.  And that's in the DOS interpreted QuickBasic.  I'm sure VB would be faster.

 Posted by Charlie on 2005-09-24 15:44:53

 Search: Search body:
Forums (0)