a(n) is the smallest positive integer not occurring earlier in the sequence such that Sum_{k=1..n} a(k) written in binary contains binary n as a substring.

A160855

a(n) is the smallest positive integer not occurring earlier in the sequence such that Sum_{k=1..n} a(k) written in binary contains binary n as a substring.

Terms

    a(0) =1a(1) =3a(2) =2a(3) =6a(4) =8a(5) =4a(6) =5a(7) =11a(8) =10a(9) =24a(10) =12a(11) =13a(12) =7a(13) =9a(14) =28a(15) =17a(16) =36a(17) =14a(18) =20a(19) =46a(20) =22a(21) =44a(22) =25a(23) =18a(24) =15a(25) =16a(26) =19a(27) =21a(28) =23a(29) =26

External references