a(1)=1; a(n) = smallest positive integer not already present such that a(n-1) and a(n) have a different number of 1's in their binary expansions.

A109451

a(1)=1; a(n) = smallest positive integer not already present such that a(n-1) and a(n) have a different number of 1's in their binary expansions.

Terms

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

External references