Author |
Topic: Longest Binary Number (Read 3748 times) |
|
ThudnBlunder
wu::riddles Moderator Uberpuzzler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBAttachments/Eamon7.gif)
The dewdrop slides into the shining Sea
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 4489
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Longest Binary Number
« on: Apr 21st, 2007, 6:58pm » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBAttachments/necromancer1.GIF)
Everything before 7/1/2008 is now irrelevant.
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 460
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #1 on: Apr 22nd, 2007, 1:04pm » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif) Some people are average, some are just mean.
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 13730
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #2 on: Apr 22nd, 2007, 1:27pm » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBAttachments/necromancer1.GIF)
Everything before 7/1/2008 is now irrelevant.
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 460
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #3 on: Apr 22nd, 2007, 1:31pm » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif) Some people are average, some are just mean.
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 13730
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #4 on: Apr 22nd, 2007, 1:33pm » |
Quote 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. 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://florian.net/pic/65x65/grimbal.php?.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 7527
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #5 on: Apr 22nd, 2007, 2:52pm » |
Quote Modify
|
Would 10101 contain 2 times the sequence 101?
|
|
IP Logged |
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://florian.net/pic/65x65/grimbal.php?.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 7527
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #6 on: Apr 22nd, 2007, 3:07pm » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://manetheren.bigw.org/~ray/eigenray.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 1948
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #7 on: Apr 22nd, 2007, 4:29pm » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
![rmsgrey](http://www.ocf.berkeley.edu/~wwu/YaBBImages/aim.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 2874
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #8 on: Apr 23rd, 2007, 7:18am » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://florian.net/pic/65x65/grimbal.php?.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 7527
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #9 on: Apr 23rd, 2007, 8:21am » |
Quote Modify
|
Technically? As opposed to what?
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/starmod.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif) Some people are average, some are just mean.
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 13730
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #10 on: Apr 23rd, 2007, 8:46am » |
Quote 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
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
![rmsgrey](http://www.ocf.berkeley.edu/~wwu/YaBBImages/aim.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 2874
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: Longest Binary Number
« Reply #11 on: Apr 24th, 2007, 6:17am » |
Quote 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 |
|
|
|
|