Page 11 of 11
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 6:52 pm
by DesLife
Hey mat, I have a game for you (and for others as well, but I guess you'll be the only one interested) ! It's about auto-referent numbers (couldn't find anything in English about those, so I don't even know how they're called).
Let's consider numbers made of 4 digits, like 1230. The referent of a 4 digits number is a 4 digits number as well. To find it, you count the zeros in it : that number will be the first digit of the referent. Then the number of 1, the number of 2, and the number of 3. So the referent of 1230 is 1111.
Here are some examples (the referent of a number is below it) :
1111 - 3000 - 3213 - 4444
0400 - 3001 - 0112 - 0000
An auto-referent is obviously a number equal to its referent.
Can you find all the auto-referent numbers made of 8 digits or less ?

Re: The Math Help Topic
Posted: Tue Mar 22, 2011 7:30 pm
by Matyuv
Interesting. Can't think of a clever algorithm just yet, but I'll look into it.
1210 is the lowest auto-referent, right?
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 7:33 pm
by DesLife
Indeed. Well stupid algorithms work too.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:19 pm
by Matyuv
They suck though.
Anyways I can prove that sum of digits must be equal to the length of the number, and that the digits must be less than (length/2). It also seems that consecutive digits can't be the same, but I'm yet to prove that. If that's so (gonna look into it soon) it really shouldn't leave many numbers to check. If it isn't, I'll look for other properties.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:24 pm
by DesLife
Your program will be longer than if you just tested every number.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:32 pm
by Matyuv
I thought this was a pen&paper problem actually. lal
how many such numbers are there?
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:36 pm
by DesLife
! Obviously not ! I think there are 7 of them.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:39 pm
by Matyuv
How is this obviously not a pen&paper problem then? They all can be found manually since there aren't too many of them rite?
I just don't like coding at all anymore. It's annoying.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:50 pm
by DesLife
I'm not sure you can find them all manually. I'll give it a try though. But if you want some pen&paper problem, I'll come up with some good algebra.

Re: The Math Help Topic
Posted: Tue Mar 22, 2011 8:55 pm
by Matyuv
okie Imma try to find them all manually too.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 9:04 pm
by DesLife
Here's a very good one. I really enjoyed it, but I don't know if you'll be able to understand it, and I cba to translate it.
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 9:34 pm
by Matyuv
Fuck I'm still getting 5. You sure about 7?
1210
2020
21200
3211000
42101000
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 9:42 pm
by DesLife
Oh no, there are just 5, my mistake. There's a 9 and a 10 digits ones.
Well it didn't seem too hard, I'll try it too !
Re: The Math Help Topic
Posted: Tue Mar 22, 2011 9:50 pm
by Matyuv
Yup it's not hard. I'll check out the article.