a(0) = 0, and a(n) is the least positive integer not occurring earlier in the sequence such that a(n-1) and a(n) differ in only one bit when written in binary.
A163252
a(0) = 0, and a(n) is the least positive integer not occurring earlier in the sequence such that a(n-1) and a(n) differ in only one bit when written in binary.
Terms
- a(0) =0a(1) =1a(2) =3a(3) =2a(4) =6a(5) =4a(6) =5a(7) =7a(8) =15a(9) =11a(10) =9a(11) =8a(12) =10a(13) =14a(14) =12a(15) =13a(16) =29a(17) =21a(18) =17a(19) =16a(20) =18a(21) =19a(22) =23a(23) =22a(24) =20a(25) =28a(26) =24a(27) =25a(28) =27a(29) =26
External references
- oeis: A163252