Write n in base 3, then (working from left to right) if the k-th digit of n is not equal to the digit to its left then the k-th digit of a(n) is 1, otherwise it is 0, and finally read the result as a base-2 number.
A060585
Write n in base 3, then (working from left to right) if the k-th digit of n is not equal to the digit to its left then the k-th digit of a(n) is 1, otherwise it is 0, and finally read the result as a base-2 number.
Terms
- a(0) =0a(1) =1a(2) =1a(3) =3a(4) =2a(5) =3a(6) =3a(7) =3a(8) =2a(9) =6a(10) =7a(11) =7a(12) =5a(13) =4a(14) =5a(15) =7a(16) =7a(17) =6a(18) =6a(19) =7a(20) =7a(21) =7a(22) =6a(23) =7a(24) =5a(25) =5a(26) =4a(27) =12a(28) =13a(29) =13
External references
- oeis: A060585