a(n) = (n - 2^floor(log(n)/log(2)) + 1)-th integer among those positive integers not among the earlier terms of the sequence.

A120241

a(n) = (n - 2^floor(log(n)/log(2)) + 1)-th integer among those positive integers not among the earlier terms of the sequence.

Terms

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

External references