wu :: forums
« wu :: forums - Longest Binary Number »

Welcome, Guest. Please Login or Register.
Apr 16th, 2024, 1:52am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   medium
(Moderators: Eigenray, william wu, towr, Icarus, SMQ, ThudnBlunder, Grimbal)
   Longest Binary Number
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Longest Binary Number  (Read 3711 times)
ThudnBlunder
wu::riddles Moderator
Uberpuzzler
*****




The dewdrop slides into the shining Sea

   


Gender: male
Posts: 4489
Longest Binary Number  
« on: Apr 21st, 2007, 6:58pm »
Quote Quote Modify Modify

What is the longest binary number which does not contain any 3-bit sequence more than twice or the sequence 11?
IP Logged

THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
Random Lack of Squiggily Lines
Senior Riddler
****




Everything before 7/1/2008 is now irrelevant.

   


Gender: male
Posts: 460
Re: Longest Binary Number  
« Reply #1 on: Apr 22nd, 2007, 1:04pm »
Quote Quote Modify Modify

? 1010101010101010101....?
IP Logged

You can only believe i what you can prove, and since you have nothing proven to cmpare to, you can believe in nothing.

I have ~50 posts to hack a "R" into a "D". Which one?
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Longest Binary Number  
« Reply #2 on: Apr 22nd, 2007, 1:27pm »
Quote Quote Modify Modify

on Apr 22nd, 2007, 1:04pm, tiber13 wrote:
? 1010101010101010101....?
That contains the sequence 101 and 010 a lot more than twice.
 
There are 8 three bit sequences, two contain 11, so that leaves 6. Each can occur at most twice, and they overlap with two. So at most the string is 14 characters long.
Another more fruitfull approach is to consider we must always have one or two 0's between every two 1's. But then any internal 1 will be part of the sequence 010, and we can have only two of those.
Tentatively, 101001001
« Last Edit: Apr 22nd, 2007, 1:31pm by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Random Lack of Squiggily Lines
Senior Riddler
****




Everything before 7/1/2008 is now irrelevant.

   


Gender: male
Posts: 460
Re: Longest Binary Number  
« Reply #3 on: Apr 22nd, 2007, 1:31pm »
Quote Quote Modify Modify

? sorry, but i dont understand binary, but i do know statistics, 5/4 people are terrible at fractions
IP Logged

You can only believe i what you can prove, and since you have nothing proven to cmpare to, you can believe in nothing.

I have ~50 posts to hack a "R" into a "D". Which one?
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Longest Binary Number  
« Reply #4 on: Apr 22nd, 2007, 1:33pm »
Quote Quote Modify Modify

on Apr 22nd, 2007, 1:31pm, tiber13 wrote:
? sorry, but i dont understand binary, but i do know statistics, 5/4 people are terrible at fractions
Hmm, yes, I always forget there are 10 kinds of people: those that understand binary and those that don't. Tongue
 
Instead of binary, you can consider decimal (i,.e. regular) numbers which only have 1's and 0's.
« Last Edit: Apr 22nd, 2007, 1:36pm by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7526
Re: Longest Binary Number  
« Reply #5 on: Apr 22nd, 2007, 2:52pm »
Quote Quote Modify Modify

Would 10101 contain 2 times the sequence 101?
IP Logged
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7526
Re: Longest Binary Number  
« Reply #6 on: Apr 22nd, 2007, 3:07pm »
Quote Quote Modify Modify

I get 10001000101 or reversed.
Or 100010001010 depending on how you count the multiplicity.
« Last Edit: Apr 22nd, 2007, 3:10pm by Grimbal » IP Logged
Eigenray
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 1948
Re: Longest Binary Number  
« Reply #7 on: Apr 22nd, 2007, 4:29pm »
Quote Quote Modify Modify

There are 6 permutations of 10100100001 that should also work.
 
Consider the lengths of the runs of 0s between adjacent 1s.  There are no more than 3 runs.
If any has length 4, the others have length 2, and we can't have more than 2 of length 2.  So if some run has length 4, the longest string has lengths (4,2,1).
Otherwise, there longest it could be is (3,3,1).

So there are a total of 9 strings with length 11, and none longer.
« Last Edit: Apr 22nd, 2007, 4:46pm by Eigenray » IP Logged
rmsgrey
Uberpuzzler
*****





134688278 134688278   rmsgrey   rmsgrey


Gender: male
Posts: 2872
Re: Longest Binary Number  
« Reply #8 on: Apr 23rd, 2007, 7:18am »
Quote Quote Modify Modify

on Apr 22nd, 2007, 1:27pm, towr wrote:
There are 8 three bit sequences, two contain 11

technically, three contain 11  - 110, 011 and 111
IP Logged
Grimbal
wu::riddles Moderator
Uberpuzzler
*****






   


Gender: male
Posts: 7526
Re: Longest Binary Number  
« Reply #9 on: Apr 23rd, 2007, 8:21am »
Quote Quote Modify Modify

Technically?  As opposed to what?
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Longest Binary Number  
« Reply #10 on: Apr 23rd, 2007, 8:46am »
Quote Quote Modify Modify

on Apr 23rd, 2007, 7:18am, rmsgrey wrote:
technically, three contain 11  - 110, 011 and 111
Oops.. Yeah, that was careless of me to miss.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
rmsgrey
Uberpuzzler
*****





134688278 134688278   rmsgrey   rmsgrey


Gender: male
Posts: 2872
Re: Longest Binary Number  
« Reply #11 on: Apr 24th, 2007, 6:17am »
Quote Quote Modify Modify

on Apr 23rd, 2007, 8:21am, Grimbal wrote:
Technically?  As opposed to what?

As opposed to a wild estimate. Two, plus or minus one is reasonable compared to some of the estimates I've seen over the years...
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board