a(n) = the smallest positive integer not occurring earlier in the sequence such that sum{k=1 to n} a(k) written in binary contains binary n as a substring.
1, 3, 2, 6, 8, 4, 5, 11, 10, 24, 12, 13, 7, 9, 28, 17, 36, 14, 20, 46, 22, 44, 25, 18, 15, 16
4 seqfan posts
Mon Jul 6 21:40:43 CEST 2009 [seqfan] R: Seqfan Digest, Vol 10, Issue 5