weird stuff

Math help on Congruences, Modulo, Fermat's Theorem, Fermat's Last Theorem (FLT), Euler's Theorem, Euler Totient Function, Divisors, Multiples, Prime Numbers, Prime Number Theorem, Distribution of Prime Numbers, Dzeta Function, Riemann Hypothesis, Algebraic Number Theory, Analytic Number Theory on My Math Forum.

Math problems in Number Theory

Moderators: Infinity, mathman, roadnottaken, CRGreathouse, cknapp, johnny, milin, skipjack

weird stuff

Postby gabriel_ro » Sun Feb 22, 2009 3:20 pm

Hello there math people!

A friend of mine has recently introduced me to a little math puzzle.

You have the following series of numbers:

1
11
21
1211
111221
312211
13112221
1113213211

The question is, what is the algorithm used for generating these series.

-SPOILER FOLLOWS-

Take the sixth series, for example (312211).
You get the seventh series based only on the previous series, in the following manner:
You have one "3" digit, so the first two digits of the seventh series are 13.
Then you have one "1" digit, so the next two digits of the seventh series are 11.
Then you have two "2" digits, so the next two digits of the seventh series are 22.
And then you have two "1" digits, so the last two digits of the seventh series are 21.

OK. That was fun enough, so I thought I could write a little PHP script to see what interesting properties I can find. For example I wondered if there was ever foing to be a 4 anywhere, and stuff like that. I was also curious whether there was a pattern for the number of digits in each string, or for their sum.

Here is a link to it:
http://www.cozmoslabs.com/projects/tbd/ ... 00&rows=15

Results?
Well, I found out that 4 never comes up, and I could find no pattern for the number of digits or for their sum, BUT something really unexpected came up: I calculated the average digit, I mean the sum of the digits divided by the number of digits in every string. AND apparently, as you iterate further and further, this average converges to a certain value of about 1.689

Here is another link, with more iterations:
http://www.cozmoslabs.com/projects/tbd/ ... 40&rows=40

SO, at last, my question: How can I get that value? I suspect it might be something like sqrt(a)*b/c, where a, b and c are integers, or whatever.

Regards, Gabriel
Last edited by gabriel_ro on Wed Mar 04, 2009 4:33 am, edited 2 times in total.
gabriel_ro
Jack of Clubs
Jack of Clubs
 
Posts: 4
Joined: Sun Feb 22, 2009 3:16 pm

Re: weird stuff

Postby CRGreathouse » Sun Feb 22, 2009 5:33 pm

This is Conway's Look-and-Say sequence.

Can you explain the calculation of the 'average digit' a little more?
Pari/GP: this is the program I probably mentioned in my post. Here's a link to the Windows installer for Pari.
User avatar
CRGreathouse
Joker
Joker
 
Posts: 5287
Joined: Sat Nov 25, 2006 9:52 am
Location: UTC -5

Re: weird stuff

Postby gabriel_ro » Mon Feb 23, 2009 11:52 am

WOW! The "Look and Say Sequence". That's so cool. Thanks.

There sure is a wealth of information at the page you indicated.

But what surprised me is the lack of information regarding the sum of all digits for each term of the sequence.

Perhaps 'average digit' was not exactly the smartest choice of words, since obviuously digits must be integers, not real numbers.

Anyhow, you can add all the digits of a term and get an "X".
And you can count all the digits of a term and get a "Y".

And then you can divide X by Y and get a Z.

Z=X/Y

Z is what I called the 'average digit'.

And strangely enough, the higher the term of the sequence, the more Z converges to a value of about 1.689

see http://www.cozmoslabs.com/projects/tbd/alg/index.php?start=1&displimit=40&rows=40

I was just wondering if there is a way to determine it, like maybe it's the root of a polynomial or something like that.
Last edited by gabriel_ro on Tue Feb 24, 2009 7:31 am, edited 1 time in total.
gabriel_ro
Jack of Clubs
Jack of Clubs
 
Posts: 4
Joined: Sun Feb 22, 2009 3:16 pm

Re: weird stuff

Postby CRGreathouse » Mon Feb 23, 2009 12:35 pm

gabriel_ro wrote:I was just wondering if there is a way to determine it, like maybe it's the root of a polynomial or something like that.


You can probably find it as a consequence of the so-called "Cosmological Theorem".
Pari/GP: this is the program I probably mentioned in my post. Here's a link to the Windows installer for Pari.
User avatar
CRGreathouse
Joker
Joker
 
Posts: 5287
Joined: Sat Nov 25, 2006 9:52 am
Location: UTC -5

Re: weird stuff

Postby gabriel_ro » Mon Feb 23, 2009 8:48 pm

I'd love it if you could elaborate a bit.

I mean, I can't find any reference to the sum of digits for each term in the Cosmological Theorem...
gabriel_ro
Jack of Clubs
Jack of Clubs
 
Posts: 4
Joined: Sun Feb 22, 2009 3:16 pm

Re: weird stuff

Postby CRGreathouse » Mon Feb 23, 2009 10:18 pm

gabriel_ro wrote:I mean, I can't find any reference to the sum of digits for each term in the Cosmological Theorem...


That's because it's not about the sums of digits. But it gives you a fair amount of information on the structure of the numbers, and that could probably be used to prove the exact 'average' of the digits.
Pari/GP: this is the program I probably mentioned in my post. Here's a link to the Windows installer for Pari.
User avatar
CRGreathouse
Joker
Joker
 
Posts: 5287
Joined: Sat Nov 25, 2006 9:52 am
Location: UTC -5

Re: weird stuff

Postby gabriel_ro » Tue Feb 24, 2009 3:36 am

ok. thanks :)
gabriel_ro
Jack of Clubs
Jack of Clubs
 
Posts: 4
Joined: Sun Feb 22, 2009 3:16 pm

Re: weird stuff

Postby CRGreathouse » Tue Feb 24, 2009 8:38 am

Good luck with your problem. If you solve it (or make large strides) post here so we can celebrate with you! :D
Pari/GP: this is the program I probably mentioned in my post. Here's a link to the Windows installer for Pari.
User avatar
CRGreathouse
Joker
Joker
 
Posts: 5287
Joined: Sat Nov 25, 2006 9:52 am
Location: UTC -5


Return to Number Theory

Who is online

Registered users: aswoods, Baidu [Spider], CRGreathouse, Google [Bot], MarkFL, MSN [Bot], The Chaz, Yahoo [Bot]