login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A207460
Let a(1) = 4. For n > 1, a(n) is the least number greater than a(n-1) such that the Hamming distance D(a(n-1),a(n)) = 4.
1
4, 11, 16, 31, 35, 44, 49, 62, 70, 73, 82, 93, 97, 110, 112, 127, 143, 145, 158, 162, 173, 176, 191, 199, 200, 211, 220, 224, 239, 241, 254, 286, 290, 301, 304, 319, 327, 328, 339, 348, 352, 367, 369, 382, 398, 400, 415, 419
OFFSET
1,1
COMMENTS
All terms are odious (A000069).
LINKS
MATHEMATICA
nxt[n_]:=Module[{k=n+1}, While[HammingDistance[PadLeft[IntegerDigits[ n, 2], IntegerLength[ k, 2]], IntegerDigits[k, 2]]!=4, k++]; k]; NestList[ nxt, 4, 50] (* Harvey P. Dale, Nov 07 2020 *)
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev, Feb 18 2012
STATUS
approved