[extropy-chat] Sequence

Adrian Tymes wingcat at pacbell.net
Tue Sep 21 17:05:15 UTC 2004


--- Emlyn <emlynoregan at gmail.com> wrote:
> 01121223122323341223233423343445
> 
> What comes next? Why?

This being a count of the number of 1s in the binary
representation of each position number, the next set
of numbers will (in binary) be the same numbers with a
1 in front, so just add 1 to each position:

12232334233434452334344534454556

Or, more graphically:

01121223122323341223233423343445

01010101010101010101010101010101
00110011001100110011001100110011
00001111000011110000111100001111
00000000111111110000000011111111
00000000000000001111111111111111
00000000000000000000000000000000

12232334233434452334344534454556

01010101010101010101010101010101
00110011001100110011001100110011
00001111000011110000111100001111
00000000111111110000000011111111
00000000000000001111111111111111
11111111111111111111111111111111



More information about the extropy-chat mailing list