# Thread: a pattern in chaos?

1. i take any binary number and transfrom it into a new number by comparing each digit with the next and the last one with the first, it can be equal , e or disiqual, d

for example the number 0101 in the first transformation becomes dddd and in the second transformation eeee

well any binary number eventually transforms to all equal after a number of this transformations

check it out:

now what should be the next step?

2.

3. Either try it with more digits, get the computer to do it for you, or prove (or disprove) your hypothesis.

4. Interesting observation. It's not really "chaos" though is it?

Can you see a reason for this behaviour?

5. It doesn't work for 5 digits.

try: deeed.

Also 6 digits, try: deeeed. Doesn't work either.

6. i think this only works with a number of digits power of 2

7. hey i think this could be used to compress info:

eeeeeeee has one transformation so this number is expressed as 000 theres one of this
dddddddd has one transformation so its expressed as 001 theres one of this
dededede has two transformation so its expressed as 010d theres 2 of this
deeddeed has 3 transformation so its expressed as 011dd therse 4 of this
deeedeee has 4 trans so its 100ddd theres 8 of this

ans so on till it gets 111dddddd theres 128 of this

8. normally to express 256 numbers you need 8 lines of code

with this youre using:

3+3+4*2+5*4+6*8+7*16+8*32+9*64 all divided by 256=

4.0078 lines of code

 Bookmarks
##### Bookmarks
 Posting Permissions
 You may not post new threads You may not post replies You may not post attachments You may not edit your posts   BB code is On Smilies are On [IMG] code is On [VIDEO] code is On HTML code is Off Trackbacks are Off Pingbacks are Off Refbacks are On Terms of Use Agreement