Page 1 of 1

Another number puzzle

Posted: Tue Nov 16, 2010 11:36 am
by Howard Somerset
Dinos's puzzle this morning reminds me of another I learned at about the same time. It's probably equally well known, so PM me with an answer, and I'll acknowledge it here if you're right.

Find a 10 digit number in which
the first digit is the number of zeros in the number
the second digit is the number of ones in the number
the third digit is the number of twos in the number
...
the last digit is the number of nines in the number

Re: Another number puzzle

Posted: Tue Nov 16, 2010 1:14 pm
by Michael Wallace
Liam Tiernan wrote:8100000000?. There are probably others.
How many 8s in that?

Edit: Oh, you deleted it.

Re: Another number puzzle

Posted: Tue Nov 16, 2010 1:57 pm
by Liam Tiernan
Michael Wallace wrote:
Liam Tiernan wrote:8100000000?. There are probably others.
How many 8s in that?

Edit: Oh, you deleted it.
Whoops, soz, serious caffeine deficiency this morning. TBF, was playing weekly poker tournament 'til early hours and won for first time in months. Head still buzzing.

Re: Another number puzzle

Posted: Tue Nov 16, 2010 2:11 pm
by Howard Somerset
One suggestion by PM so far. Not correct.

Re: Another number puzzle

Posted: Tue Nov 16, 2010 3:52 pm
by Howard Somerset
Jon Corby spot on at 14:39. Well done.

I've got an extension for this one too, but I need to be careful how I word it. Later, maybe.

Re: Another number puzzle

Posted: Tue Nov 16, 2010 6:01 pm
by Howard Somerset
Bob de Caux has now got a correct solution.

Jon and Bob have both come up with the same 10-digit number. For you two, and for anyone else who manages a valid solution, how many 10-digit solutions can you find? And can you prove convincingly that there aren't any more?

Re: Another number puzzle

Posted: Tue Nov 16, 2010 6:07 pm
by Kai Laddiman
I might have a stab at a program for this in a bit.

Might.

Re: Another number puzzle

Posted: Tue Nov 16, 2010 11:33 pm
by Howard Somerset
3rd correct solution. This time from Graeme Cole. Well done, Graeme.

Re: Another number puzzle

Posted: Wed Nov 17, 2010 8:12 am
by Howard Somerset
And a correct over-night submission from Dinos.

Re: Another number puzzle

Posted: Wed Nov 17, 2010 8:14 am
by Howard Somerset
Kai Laddiman wrote:I might have a stab at a program for this in a bit.

Might.
You'll find it much more satisfying to do it without programming aids. :)

... unless you simply treat it as an excercise in improving your programming skills. But even then, I'd have a go at doing it by simply thinking.

Re: Another number puzzle

Posted: Wed Nov 17, 2010 11:57 am
by Howard Somerset
Ok, first extension.

Replace the asterisks with numbers, which do not have to be single digits, so that the following sentence is correct.

This sentence contains * 0s, * 1s, * 2s, * 3s, * 4s, * 5s, * 6s, * 7s, * 8s and * 9s.

Of course, if any of the asterisks are 1, then you can drop the corresponding plural s.

I believe there are two solutions.

Re: Another number puzzle

Posted: Wed Nov 17, 2010 5:49 pm
by Howard Somerset
Another correct submission for the 10 digit number. This time from Ben W.

Re: Another number puzzle

Posted: Thu Nov 18, 2010 9:56 am
by Howard Somerset
For the first extension, Bob is the first to get one of the two possible answers.

So who's going to be the first to get them both?

Re: Another number puzzle

Posted: Thu Nov 18, 2010 10:00 am
by Jon O'Neill
Howard Somerset wrote:So who's going to be the first to get them both?
Is this another extension? If it is, I'm going for Bob.

Re: Another number puzzle

Posted: Thu Nov 18, 2010 10:01 am
by Howard Somerset
Jon O'Neill wrote:
Howard Somerset wrote:So who's going to be the first to get them both?
Is this another extension? If it is, I'm going for Bob.
I wonder if Bob will hold back, just to prove you wrong, Jono. :)

Re: Another number puzzle

Posted: Thu Nov 18, 2010 10:21 am
by Howard Somerset
First the first extension, Jon Corby's the first to get both solutions.

Re: Another number puzzle

Posted: Thu Nov 18, 2010 10:23 am
by Jon O'Neill
So I failed the second extension? Poop.

Re: Another number puzzle

Posted: Thu Nov 18, 2010 11:16 am
by Bob De Caux
Jon O'Neill wrote:So I failed the second extension? Poop.
Sorry Jono, I couldn't handle the pressure and went to pieces

Re: Another number puzzle

Posted: Thu Nov 18, 2010 12:01 pm
by Howard Somerset
Bob has now recovered his composure, and come up with the second possible solution.

Re: Another number puzzle

Posted: Thu Nov 18, 2010 12:22 pm
by Howard Somerset
And now a correct submission from Jono. Well half a submission anyway. One solution to the extension.

Re: Another number puzzle

Posted: Thu Nov 18, 2010 12:43 pm
by Howard Somerset
All correct now from Jono. Both for the initial puzzle, and the two solutions for the extension.

Re: Another number puzzle

Posted: Sat Nov 20, 2010 9:24 pm
by Howard Somerset
10 digit solution now correctly found by Jack.