OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[200], Mod[Length[Split[IntegerDigits[#, 2]]], 3]==1&] (* Harvey P. Dale, Mar 24 2022 *)
PROG
(PARI) isok(k) = (hammingweight(bitxor(k, k>>1)) % 3) == 1; \\ Michel Marcus, Oct 04 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved