And speaking of sequences, here is another one

4, 5, 9, 11, 12, 13, 14.....

How should it continue?

(Hint: This is called the "Even Steven" sequence!)

These people say:

%S A001161 0,4,5,9,11,12,13,14,18,19,20,24,25,29,30,34,35,39,41,42,43,46,47,

%T A001161 48,51,52,53,56,57,58,61,62,63,66,67,68,71,72,73,76,77,78,80,84,85,

%U A001161 89,90,94,95,99

%N A001161 Numbers containing an even number of letters.

:P

Here's another fun one:

217532153...

3 digits needed to complete(!) this sequence.

The output is 1014492753623188405797

As for the sequence, your solution sounds valid, but is not what I anticipated:

0001 0011 0101 1110 0010 0110 1011 1100 ...

Now, how does the sequence continue?

Very nice code and of course the answer is correct! Congrats

Now, we still have the two sequences to solve. They are both tough. Especially that one missing only 3 digits I am still thinking!!

Umm... here is another shot at the binary sequence...

0001 0011 0101 1110 0010 0110 1011 1100 ...

If we group it into groups of 3 instead... something funny happens...

000 100 110 101 111 000 100 110 101 111 00 ...

which if we break into lines after 15 digits, becomes

000 100 110 101 111

000 100 110 101 111

00 ...

which means it should continue...

000 100 110 101 111

000 100 110 101 111

000 100 110 101 111

000 100 110 101 111

000 100 110 101 111

000 100 110 101 111

The output is 1014492753623188405797holy shit, those math programs these days are awesome !!! Great work

Btw, did I mention this thread RULES !!!!

Though 1 person started this out of boredom, I think people who reply, reply out of curiousity.

about 2 years ago I went to a meditation course, called vipassana.

Translated this means something like : the way to live.

For 10 days I was not alowed to talk to people, look at people, or have any contact what so ever.

Every day I had to get up at 4 in the morning, and after a 10 hour meditation (with breaks every 1 or 1,5 hour) I went to bed at around 9 in the evening.

I got confronted with boredom so badly that I couldnt stand it anymore, and after about 6 days I felt like going home. Though, in my heart the urge to stay was stronger, and the strange thing is,

after that I managed to get rid of the boredom which was stored deep inside me.

For the rest of those 4 days I didnt spend even 1 minute being bored.

I got high...... uncomparable with smoking weed or something.

This was the first time in my life I experience a pure high.

That was freaky shit.

The output is 1014492753623188405797holy shit, those math programs these days are awesome !!! Great work

Hm? Math programs these days? I could have written the same program in MSX-BASIC 20 years ago

Ok, I'll lift the fog about the 2 sequences

The 1st runs like this:

0001001101011110001001101011110001001101011110001001101011110001

which means someone2 was right

The sequence was generated by a small pseudo random generator, and I was really too lazy to check its complete output

int seed = 0x8; for(int i=0; i < 100; i++) { System.out.print(seed & 1); int old_seed = seed; seed = (seed >> 1); boolean b1 = (old_seed & 0x4) != 0; boolean b2 = (old_seed & 0x2) != 0; if(b1 ^ b2) { seed = seed + 0x10; } }

The second one is 217532153**436**

It is a sequence of 4 triplets. Each triplet represents one stage of a pattern in Conway's Game of Life, named 'the Glider'.

2 .x. 5 x.x 1 ..x 4 x.. 1 ..x 3 .xx 5 x.x 3 .xx 7 xxx 2 .x. 3 .xx 6 xx.

The second one is 217532153**436**

It is a sequence of 4 triplets. Each triplet represents one stage of a pattern in Conway's Game of Life, named 'the Glider'.

2 .x. 5 x.x 1 ..x 4 x.. 1 ..x 3 .xx 5 x.x 3 .xx 7 xxx 2 .x. 3 .xx 6 xx.

Grrrr... How were we supposed to find this one out?? :-? ;( ;( ;( :P

Ok, here is another one. It requires some ASCII art, I hope I don't mess it up..

Check this panel out..

--- --- --- | | | | --- --- --- 1 2 4

You can fill it like this...

--- --- --- | 3 | 1 | 1 | --- --- --- 1 2 4

Notice that the number in each box tells us how many of the numbers on the label below appear in the entire panel (we have 3 1's overall, 1 two, and 1 four).

Now, your job is to do the same for the following ones

--- --- --- --- | | | | | --- --- --- --- 1 2 3 4

--- --- --- --- --- --- --- --- --- | | | | | | | | | | --- --- --- --- --- --- --- --- --- 1 2 3 4 5 6 7 8 9

Enjoy :P

The second one is 217532153**436**

It is a sequence of 4 triplets. Each triplet represents one stage of a pattern in Conway's Game of Life, named 'the Glider'.

2 .x. 5 x.x 1 ..x 4 x.. 1 ..x 3 .xx 5 x.x 3 .xx 7 xxx 2 .x. 3 .xx 6 xx.

Grrrr... How were we supposed to find this one out?? :-? ;( ;( ;( :P

heheheh. I have to admit that it was a bit far-fetched. :P

On the other hand: the fact that the given sequence was 9 digits long, and had to be completed with 3 more digits, should have had you looking for patterns of 3 digits. Then just have the flash of inspiration to write out the numbers in binary and you're already half way there :)

/me not feel guilty B-)

--- --- --- --- | | | | | --- --- --- --- 1 2 3 4

Hm, let's see...

1111 -> 4111 -> 4112 -> 4212 -> 2212 -> 2312 ->

--- --- --- --- | 2 | 3 | 2 | 1 | --- --- --- --- 1 2 3 4

So, what did I do? I just started with a 1 in every box and iterated through all boxes, adjusting the number until I didn't change anything anymore.

Let's put that in an MSX-BASIC program for the next puzzle:

10 DIM B(9) ' 20 FOR I=0 TO 9: B(I)=1: NEXT ' initialize 30 X=1 ' the digit to test 40 C=0 ' out "did-we-change-anything?" flag 50 ' Test a digit and update its box 60 N=1 70 FOR I=1 TO 9 80 IF B(I)=X THEN N=N+1 90 NEXT 100 ' set the flag if we have to change this box 110 IF B(X)<>N THEN C=1 120 ' fill the box 130 B(X)=N 140 ' next digit 150 X=X+1 160 ' If we're at the end and didn't change anything, we're done! 170 IF X=10 AND C=0 THEN 220 180 ' If we're at the end (and we did change something) then start from the beginning 190 IF X=10 THEN X=1: C=0 200 GOTO 60 210 ' We're done! 220 FOR I=1 TO 9 230 PRINT B(I);":"; 240 NEXT 250 END

The result:

--- --- --- --- --- --- --- --- --- | 6 | 3 | 2 | 1 | 1 | 2 | 1 | 1 | 1 | --- --- --- --- --- --- --- --- --- 1 2 3 4 5 6 7 8 9